diff options
| author | Igor Minar | 2013-08-09 00:16:27 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-09 00:39:31 -0700 |
| commit | b3087421f20241f9bcb9b1f00ee9a30efc8b0899 (patch) | |
| tree | 73ea7d976d1f56687db196e876f41e39fcdea209 /test/jqLiteSpec.js | |
| parent | 3824e40011df1c0fdf5964d78776f1a12a29c144 (diff) | |
| download | angular.js-b3087421f20241f9bcb9b1f00ee9a30efc8b0899.tar.bz2 | |
docs(jqLite): update the minErr codes for on() and off()
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index f8d71bc9..abfad064 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -886,15 +886,15 @@ describe('jqLite', function() { expect(function() { elm.on('click', anObj, callback); - }).toThrow(); + }).toThrowMatching(/\[jqLite\:onargs\]/); expect(function() { elm.on('click', null, aString, callback); - }).toThrow(); + }).toThrowMatching(/\[jqLite\:onargs\]/); expect(function() { elm.on('click', aValue, callback); - }).toThrow(); + }).toThrowMatching(/\[jqLite\:onargs\]/); }); } @@ -1059,7 +1059,7 @@ describe('jqLite', function() { aElem.on('click', noop); expect(function () { aElem.off('click', noop, '.test'); - }).toThrowMatching(/\[jqLite:off_args\]/); + }).toThrowMatching(/\[jqLite:offargs\]/); }); } }); |
