Skip to content

Commit

Permalink
Adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Nov 22, 2024
1 parent fc42bae commit 87ad811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loggy-intf/tests/LoggedValueEncoder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('encode()', () => {
${Symbol('xyz')} | ${sexp('Symbol', 'xyz')}}
${Symbol.for('blorp')} | ${sexp('Symbol', 'blorp', true)}}
${new Duration(12.34)} | ${sexp('Duration', 12.34, '12.340 sec')}
${new Map()} | ${sexp('Map', '...')}
${new Map()} | ${sexp('Map', sexp('Elided'))}
${new Proxy({}, {})} | ${sexp('Proxy', '<anonymous>')}
${new Proxy([], {})} | ${sexp('Proxy', '<anonymous>')}
${new Proxy(new SomeClass(), {})} | ${sexp('Proxy', '<anonymous>')}
Expand Down Expand Up @@ -131,7 +131,7 @@ describe('encode()', () => {

test('def-refs the sexp from an instance', () => {
const value = new Map();
const def = new VisitDef(0, sexp('Map', '...'));
const def = new VisitDef(0, sexp('Map', sexp('Elided')));
const expected = [def, new VisitRef(def)];
const got = LoggedValueEncoder.encode([value, value]);
expect(got).toStrictEqual(expected);
Expand Down

0 comments on commit 87ad811

Please sign in to comment.