diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js new file mode 100644 index 00000000..9968f688 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js @@ -0,0 +1,13 @@ +(function() { + + QUnit.module('Backbone.noConflict'); + + QUnit.test('noConflict', function(assert) { + assert.expect(2); + var noconflictBackbone = Backbone.noConflict(); + assert.equal(window.Backbone, undefined, 'Returned window.Backbone'); + window.Backbone = noconflictBackbone; + assert.equal(window.Backbone, noconflictBackbone, 'Backbone is still pointing to the original Backbone'); + }); + +})(); |