Skip to content

Commit

Permalink
deepEqual for better error message in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz-io committed Oct 18, 2022
1 parent 39c1c63 commit e886526
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/parse.js
Expand Up @@ -148,12 +148,7 @@ test('string and alias', function (t) {
string: ['str'],
});

t.equal(z.str, '123');
t.equal(typeof z.str, 'string');
t.equal(z.s, '123');
t.equal(typeof z.s, 'string');
t.equal(z.S, '123');
t.equal(typeof z.S, 'string');
t.deepEqual(z, { _: [], s: '123', S: '123', str: '123' });
t.end();
});

Expand Down

0 comments on commit e886526

Please sign in to comment.