From c40d621afaf8dcbfbf506dab0e8d86578b72d697 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sun, 19 Jun 2016 16:52:20 +0100 Subject: [PATCH] Update overwrite test for new behaviour --- ... overwrite arg should overwrite existing globals.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/Function overwrite arg should overwrite existing globals.js b/test/Function overwrite arg should overwrite existing globals.js index 485d762..d894cac 100644 --- a/test/Function overwrite arg should overwrite existing globals.js +++ b/test/Function overwrite arg should overwrite existing globals.js @@ -3,13 +3,9 @@ import browserEnv from '../dist'; test(t => { t.is(typeof window, 'undefined'); - let returnValue = browserEnv(); + const returnValue = browserEnv(); t.is(returnValue, window); - returnValue = browserEnv(); + const secondReturnValue = browserEnv(); t.not(returnValue, window); - returnValue = browserEnv({ - properties: ['window'], - overwrite: true - }); - t.is(returnValue, window); + t.is(secondReturnValue, window); });