mirror of
https://github.com/fluencelabs/examples
synced 2025-07-06 13:11:34 +00:00
node example
This commit is contained in:
12
fluence-js-examples/node-example/src/__test__/test.spec.ts
Normal file
12
fluence-js-examples/node-example/src/__test__/test.spec.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { runServer } from '../main';
|
||||
import { demoCalculation } from '../_aqua/demo-calculation';
|
||||
|
||||
describe('smoke test', () => {
|
||||
it('should work', async () => {
|
||||
await runServer();
|
||||
|
||||
const res = await demoCalculation();
|
||||
|
||||
expect(res).toBe(7);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user