ffffng/app/bower_components/lodash/vendor/backbone/test/noconflict.js
2016-05-16 16:56:29 +02:00

13 lines
414 B
JavaScript

(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');
});
})();