web-apps/vendor/backbone/test/noconflict.js

13 lines
363 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
(function() {
module("Backbone.noConflict");
test('noConflict', 2, function() {
var noconflictBackbone = Backbone.noConflict();
equal(window.Backbone, undefined, 'Returned window.Backbone');
window.Backbone = noconflictBackbone;
equal(window.Backbone, noconflictBackbone, 'Backbone is still pointing to the original Backbone');
});
})();