diff options
| author | Pete Bacon Darwin | 2013-10-10 09:11:21 +0100 |
|---|---|---|
| committer | Igor Minar | 2013-10-10 11:58:15 -0700 |
| commit | 07272608d8ae39a5dd220cdb5637b1439342d5c3 (patch) | |
| tree | 7f0140b96fac88eee30cf94e01a9589cd25c8b37 /test/helpers/privateMocksSpec.js | |
| parent | b019a48bb1176f3c9ce29b628a321b6ffe873393 (diff) | |
| download | angular.js-07272608d8ae39a5dd220cdb5637b1439342d5c3.tar.bz2 | |
fix(modules): stop leaking global variables in tests
The routeUtils.js file was declaring a number of functions that were
leaking into other modules such as ngMocks causing tests to pass
incorrectly.
Closes #4360
Diffstat (limited to 'test/helpers/privateMocksSpec.js')
| -rw-r--r-- | test/helpers/privateMocksSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helpers/privateMocksSpec.js b/test/helpers/privateMocksSpec.js index e58a2b75..d5a1e188 100644 --- a/test/helpers/privateMocksSpec.js +++ b/test/helpers/privateMocksSpec.js @@ -9,7 +9,7 @@ describe('private mocks', function() { var stylesheet = createMockStyleSheet($document, $window); expect(doc.styleSheets.length).toBe(count + 1); - jqLite(doc.body).append($rootElement); + angular.element(doc.body).append($rootElement); var elm = $compile('<div class="padded">...</div>')($rootScope); $rootElement.append(elm); |
