Revert "unbreak tests"

This reverts commit f9b2709c8d39b1ec6f729d315855f05d427ab75b.
This commit is contained in:
Christopher Chedeau 2015-09-09 11:10:50 -07:00
parent 086adda39b
commit b59784573b
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ describe('declareOpts', function() {
expect(function() { expect(function() {
validate({}); validate({});
}).toThrow(); }).toThrow('Error validating module options: foo is required');
}); });
it('should throw on invalid type', function() { it('should throw on invalid type', function() {
@ -74,7 +74,7 @@ describe('declareOpts', function() {
expect(function() { expect(function() {
validate({foo: 'lol'}); validate({foo: 'lol'});
}).toThrow(); }).toThrow('Error validating module options: foo must be a number');
}); });
it('should throw on extra options', function() { it('should throw on extra options', function() {
@ -87,6 +87,6 @@ describe('declareOpts', function() {
expect(function() { expect(function() {
validate({foo: 1, lol: 1}); validate({foo: 1, lol: 1});
}).toThrow(); }).toThrow('Error validating module options: lol is not allowed');
}); });
}); });