Skip to content
Browse files

Fixed CLI test when run in full batch

  • Loading branch information...
1 parent 4c11d7e commit 139af9ec5b4ee011d5c4c69e2ad45d9ce566592c @davglass davglass committed Oct 26, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/yui/tests/unit/assets/core-tests.js
View
8 src/yui/tests/unit/assets/core-tests.js
@@ -741,12 +741,8 @@ YUI.add('core-tests', function(Y) {
test.wait();
},
'test Y.config.global': function() {
- if (Y.UA.nodejs) {
- Y.Assert.areEqual(global, Y.config.global);
- } else if (typeof window !== undefined) {
- Y.Assert.areSame(Y.config.win, Y.config.global);
- Y.Assert.areSame(window, Y.config.global);
- }
+ var global = Function('return this')();
+ Y.Assert.areEqual(global, Y.config.global);
}
});

0 comments on commit 139af9e

Please sign in to comment.
Something went wrong with that request. Please try again.