13 lines
363 B
JavaScript
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');
|
||
|
});
|
||
|
|
||
|
})();
|