From ef080b699d3cf212db80c1350461cd177f56eb77 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 9 Sep 2015 09:43:44 -0700 Subject: [PATCH] Fix declareOpts test Summary: When we updated joi, the error message was changed. I removed the content to prevent similar errors in the future. Reviewed By: @amasad Differential Revision: D2424048 --- react-packager/src/lib/__tests__/declareOpts-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react-packager/src/lib/__tests__/declareOpts-test.js b/react-packager/src/lib/__tests__/declareOpts-test.js index cb9a35dd..0fa1b7c8 100644 --- a/react-packager/src/lib/__tests__/declareOpts-test.js +++ b/react-packager/src/lib/__tests__/declareOpts-test.js @@ -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(); }); });