Skip to content

Commit

Permalink
test: fix tests re: #6029 #8256
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 14, 2020
1 parent a659b2b commit 21a2b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema.test.js
Expand Up @@ -2149,7 +2149,7 @@ describe('schema', function() {
it('SchemaStringOptions line up with schema/string (gh-8256)', function() {
const SchemaStringOptions = require('../lib/options/SchemaStringOptions');
const keys = Object.keys(SchemaStringOptions.prototype).
filter(key => key !== 'constructor');
filter(key => key !== 'constructor' && key !== 'populate');
const functions = Object.keys(Schema.Types.String.prototype).
filter(key => ['constructor', 'cast', 'castForQuery', 'checkRequired'].indexOf(key) === -1);
assert.deepEqual(keys.sort(), functions.sort());
Expand Down

0 comments on commit 21a2b1e

Please sign in to comment.