From b3087421f20241f9bcb9b1f00ee9a30efc8b0899 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 9 Aug 2013 00:16:27 -0700 Subject: docs(jqLite): update the minErr codes for on() and off() --- test/jqLiteSpec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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\]/); }); } }); -- cgit v1.2.3