mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-11 14:20:07 +08:00
fix: Fix _number operator tests.
This commit is contained in:
parent
4da496e2cb
commit
3b36a53e42
@ -502,7 +502,7 @@ describe('parse operators', () => {
|
||||
const parser = new NodeParser({ state });
|
||||
await parser.init();
|
||||
const res = parser.parse({ input, location: 'locationId' });
|
||||
expect(res.output).toEqual(12.34);
|
||||
expect(res.output).toEqual('12.34');
|
||||
expect(res.errors).toMatchInlineSnapshot(`Array []`);
|
||||
});
|
||||
});
|
||||
|
@ -553,7 +553,7 @@ describe('parse operators', () => {
|
||||
const parser = new WebParser({ context, contexts });
|
||||
await parser.init();
|
||||
const res = parser.parse({ input, location: 'locationId' });
|
||||
expect(res.output).toEqual(12.34);
|
||||
expect(res.output).toEqual('12.34');
|
||||
expect(res.errors).toMatchInlineSnapshot(`Array []`);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user