Skip to content

Commit

Permalink
test(typescript): fix bad test
Browse files Browse the repository at this point in the history
Blinking light demo actually does work if you write the test right.
  • Loading branch information
wincent committed Aug 27, 2023
1 parent 811d685 commit a94db8b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions packages/typescript/src/__tests__/parseExpression-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@
import parseExpression from '../parseExpression';

describe('parseExpression()', () => {
it.failing('it parses a strict equality binary expression', () => {
const input = 'foo = 1.5';
expect(parseExpression(input)).toMatchInlineSnapshot();
it('it parses a strict equality binary expression', () => {
const input = 'foo === 1.5';
expect(parseExpression(input)).toMatchInlineSnapshot(`
{
"kind": "BinaryExpression",
"lexpr": {
"kind": "Identifier",
"name": "foo",
},
"operator": "===",
"rexpr": {
"base": 10,
"kind": "NumberValue",
"value": 1.5,
},
}
`);
});
});

0 comments on commit a94db8b

Please sign in to comment.