Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | (function() { |
||
2 | |||
3 | QUnit.module('Backbone.noConflict'); |
||
4 | |||
5 | QUnit.test('noConflict', function(assert) { |
||
6 | assert.expect(2); |
||
7 | var noconflictBackbone = Backbone.noConflict(); |
||
8 | assert.equal(window.Backbone, undefined, 'Returned window.Backbone'); |
||
9 | window.Backbone = noconflictBackbone; |
||
10 | assert.equal(window.Backbone, noconflictBackbone, 'Backbone is still pointing to the original Backbone'); |
||
11 | }); |
||
12 | |||
13 | })(); |
||
14 |