unbreak tests

This commit is contained in:
Christopher Chedeau
2015-09-08 20:00:42 -07:00
parent a9607901e2
commit f9b2709c8d
2 changed files with 3 additions and 7 deletions

View File

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