web-apps/vendor/backbone/test/noconflict.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

13 lines
363 B
JavaScript

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