From 62b66305f272b2aa866789fae3948e56a345cb72 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 31 Oct 2016 20:34:49 -0700 Subject: [PATCH] Adjust conditional assignments. --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 1a70402d5..417262fe3 100644 --- a/test/test.js +++ b/test/test.js @@ -44,12 +44,12 @@ /** Method and object shortcuts. */ var phantom = root.phantom, process = root.process, - amd = root.define && define.amd, + amd = root.define ? define.amd : undefined, args = toArgs([1, 2, 3]), - argv = process && process.argv, + argv = process ? process.argv : undefined, defineProperty = Object.defineProperty, - document = !phantom && root.document, - body = root.document && root.document.body, + document = phantom ? undefined : root.document, + body = root.document ? root.document.body : undefined, create = Object.create, fnToString = funcProto.toString, freeze = Object.freeze,