1
0
Fork 0
js-utils/test/TestApp.ts

16 lines
347 B
TypeScript
Raw Normal View History

import { expect } from 'chai';
import { spy } from 'sinon';
import { main } from '../src/app';
describe('app', async () => {
it('should log a message', async () => {
2019-09-17 12:47:12 +00:00
/* tslint:disable-next-line:no-console no-unbound-method */
const logSpy = spy(console, 'log');
await main([]);
expect(logSpy).to.have.callCount(1);
});
});