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,