From aeee8bdd39defd4435251d25ae6eba6d751b3264 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 30 Jun 2017 13:06:27 +0100 Subject: [PATCH] Better property comparison test --- test/window-properties-should-be-as-expected.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/window-properties-should-be-as-expected.js b/test/window-properties-should-be-as-expected.js index 7e960fe..9d13f2b 100644 --- a/test/window-properties-should-be-as-expected.js +++ b/test/window-properties-should-be-as-expected.js @@ -5,6 +5,5 @@ import expectedProperties from './fixtures/expectedProperties'; test(t => { browserEnv(); const properties = Object.getOwnPropertyNames(window); - t.is(properties.length, expectedProperties.length); - properties.forEach(prop => t.true(expectedProperties.indexOf(prop) > -1)); + t.deepEqual(expectedProperties.sort(), properties.sort()); });