14 lines
324 B
TypeScript
Raw Normal View History

2022-02-22 21:28:03 +03:00
import { justStop, runServer } from '../main';
2022-02-15 23:37:04 +03:00
import { demoCalculation } from '../_aqua/demo-calculation';
describe('smoke test', () => {
it('should work', async () => {
await runServer();
const res = await demoCalculation();
2022-02-22 21:28:03 +03:00
await justStop();
2022-02-15 23:37:04 +03:00
expect(res).toBe(7);
2022-02-22 20:38:25 +03:00
}, 15000);
2022-02-15 23:37:04 +03:00
});