mirror of https://github.com/status-im/metro.git
Revert "unbreak tests"
This reverts commit f9b2709c8d39b1ec6f729d315855f05d427ab75b.
This commit is contained in:
parent
086adda39b
commit
b59784573b
|
@ -61,7 +61,7 @@ describe('declareOpts', function() {
|
|||
|
||||
expect(function() {
|
||||
validate({});
|
||||
}).toThrow();
|
||||
}).toThrow('Error validating module options: foo is required');
|
||||
});
|
||||
|
||||
it('should throw on invalid type', function() {
|
||||
|
@ -74,7 +74,7 @@ describe('declareOpts', function() {
|
|||
|
||||
expect(function() {
|
||||
validate({foo: 'lol'});
|
||||
}).toThrow();
|
||||
}).toThrow('Error validating module options: foo must be a number');
|
||||
});
|
||||
|
||||
it('should throw on extra options', function() {
|
||||
|
@ -87,6 +87,6 @@ describe('declareOpts', function() {
|
|||
|
||||
expect(function() {
|
||||
validate({foo: 1, lol: 1});
|
||||
}).toThrow();
|
||||
}).toThrow('Error validating module options: lol is not allowed');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue