2017-05-13 13:25:33 +02:00
|
|
|
(function(QUnit) {
|
2016-05-16 13:33:49 +02:00
|
|
|
|
|
|
|
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');
|
|
|
|
});
|
|
|
|
|
2017-05-13 13:25:33 +02:00
|
|
|
})(QUnit);
|