diff options
| author | Oren Avissar | 2013-04-22 21:00:15 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-04-29 16:56:35 +0100 | 
| commit | 0985a37376314616ac2b777bddd8bc07e1be7af7 (patch) | |
| tree | 1dcf30472b14bde43b6ca889a855b89a3714302d /test/ng/compileSpec.js | |
| parent | cb62a57d438f94dff32218ba095a6a63b1db958f (diff) | |
| download | angular.js-0985a37376314616ac2b777bddd8bc07e1be7af7.tar.bz2 | |
test(browser/compile): fix calls to Jasmine fail()
The fail() function in Jasmine expects an Error object parameter.
Also, there is no global alias for fail() so it must be accessed using
`this.fail(new Error())`.
Diffstat (limited to 'test/ng/compileSpec.js')
| -rwxr-xr-x[-rw-r--r--] | test/ng/compileSpec.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 9614030c..26f61357 100644..100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -540,8 +540,8 @@ describe('$compile', function() {          it('should prevent multiple templates per element', inject(function($compile) {            try { -            $compile('<div><span replace class="replace"></span></div>') -            fail(); +            $compile('<div><span replace class="replace"></span></div>'); +            this.fail(new Error('should have thrown Multiple directives error'));            } catch(e) {              expect(e.message).toMatch(/Multiple directives .* asking for template/);            } | 
