mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-21 12:52:19 +00:00
16 lines
760 B
TypeScript
16 lines
760 B
TypeScript
|
import {handler} from "../main";
|
||
|
|
||
|
describe("example", () => {
|
||
|
|
||
|
it("can log some values to the console", () => {
|
||
|
log<string>(handler('{"hi": "hi"}'));
|
||
|
log<string>(handler('{"action": "Post", "msg": "Hello, Fluence!", "handle": "fluencer"}'));
|
||
|
log<string>(handler('{"action": "Post", "msg": "Hello, fluencer!", "handle": "John Doe"}'));
|
||
|
log<string>(handler('{"action": "Post", "msg": "How is it going?", "handle": "fluencer"}'));
|
||
|
log<string>(handler('{"action": "Post", "msg": "Excellent! Thanks!", "handle": "John Doe"}'));
|
||
|
log<string>(handler('{"action": "Fetch"}'));
|
||
|
log<string>(handler('{"action": "Fetch", "filter_handle": "John Doe"}'));
|
||
|
log<string>(handler('{"action": "Fetch", "filter_handle": "fluencer"}'));
|
||
|
});
|
||
|
});
|