From fab4f5d80e8b701b6a4f3a86e7976a9588c897cd Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 21 Oct 2019 16:21:40 -0400 Subject: [PATCH] test(schema): fix tests on node v4 and v5 --- test/schema.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/schema.test.js b/test/schema.test.js index 7b4d6435c87..23ecf032ba4 100644 --- a/test/schema.test.js +++ b/test/schema.test.js @@ -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()); }); });