docs(jqLite): update the minErr codes for on() and off()

This commit is contained in:
Igor Minar
2013-08-09 00:16:27 -07:00
parent 3824e40011
commit b3087421f2
4 changed files with 9 additions and 9 deletions

View File

@@ -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\]/);
});
}
});