Skip to content

Commit

Permalink
test: make test cast non-boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 11, 2025
1 parent 0cad0d7 commit 0728602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cast.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe('cast: ', function() {

it('treats unknown operators as passthrough (gh-15170)', function() {
const schema = new Schema({ x: Boolean });
assert.deepEqual(cast(schema, { x: { $someConditional: true } }),
assert.deepEqual(cast(schema, { x: { $someConditional: 'true' } }),
{ x: { $someConditional: true } });
});
});

0 comments on commit 0728602

Please sign in to comment.