2019-09-17 12:45:15 +00:00
|
|
|
import { expect } from 'chai';
|
|
|
|
import { spy } from 'sinon';
|
|
|
|
|
|
|
|
import { createApp } from '../src/app';
|
2019-09-17 12:47:12 +00:00
|
|
|
import { describeLeaks, itLeaks } from './helpers/async';
|
2019-09-17 12:45:15 +00:00
|
|
|
|
|
|
|
describeLeaks('app', async () => {
|
|
|
|
itLeaks('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');
|
2019-09-17 12:45:15 +00:00
|
|
|
|
|
|
|
await createApp();
|
|
|
|
|
|
|
|
expect(logSpy).to.have.callCount(1);
|
|
|
|
});
|
|
|
|
});
|