Skip to content

Commit

Permalink
test(schema): fix tests on node v4 and v5
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 21, 2019
1 parent 29c5f1a commit fab4f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ describe('schema', function() {
const keys = Object.keys(SchemaStringOptions.prototype).
filter(key => key !== 'constructor');
const functions = Object.keys(Schema.Types.String.prototype).
filter(key => !['constructor', 'cast', 'castForQuery', 'checkRequired'].includes(key));
filter(key => ['constructor', 'cast', 'castForQuery', 'checkRequired'].indexOf(key) === -1);
assert.deepEqual(keys.sort(), functions.sort());
});
});

0 comments on commit fab4f5d

Please sign in to comment.