Skip to content

Commit

Permalink
test: failing test case for #93
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Nov 9, 2023
1 parent 32be90e commit a71d7ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/object.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export default {
foo() {},
1: 3,
[true]: 4,
"c": { key: 5 },
'd': { key: 6 },
}
}
`.trim(),
Expand All @@ -23,13 +25,17 @@ export default {
expect(mod.exports.default.foo["a-b"]).toBe(2);
expect(mod.exports.default.foo[1]).toBe(3);
expect(mod.exports.default.foo.true).toBe(4);
expect(mod.exports.default.foo.c?.key).toBe(5);
expect(mod.exports.default.foo.d?.key).toBe(6);
expect(Object.keys(mod.exports.default.foo)).toMatchInlineSnapshot(`
[
"a",
"a-b",
"foo",
"1",
"true",
"c",
"d",
]
`);

Expand All @@ -42,6 +48,8 @@ export default {
"foo",
"1",
"true",
"c",
"d",
"a-b-c",
]
`);
Expand All @@ -56,6 +64,8 @@ export default {
foo() {},
1: 3,
[true]: 4,
c: { key: 5 },
d: { key: 6 },
\\"a-b-c\\": 3,
},
};"
Expand Down

0 comments on commit a71d7ea

Please sign in to comment.