mirror of
https://github.com/fluencelabs/examples
synced 2025-06-21 05:41:32 +00:00
Integration tests for all JS-related projects (#97)
This commit is contained in:
13
fluence-js-examples/node-example/src/__test__/test.spec.ts
Normal file
13
fluence-js-examples/node-example/src/__test__/test.spec.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { justStop, runServer } from '../main';
|
||||
import { demoCalculation } from '../_aqua/demo-calculation';
|
||||
|
||||
describe('smoke test', () => {
|
||||
it('should work', async () => {
|
||||
await runServer();
|
||||
|
||||
const res = await demoCalculation();
|
||||
await justStop();
|
||||
|
||||
expect(res).toBe(7);
|
||||
}, 15000);
|
||||
});
|
Reference in New Issue
Block a user