Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c71c940

Browse files
committed
Revert "unbreak tests"
This reverts commit f9b2709.
1 parent 635b15b commit c71c940

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2525
13DB03481B5D2ED500C27245 /* RCTJSONTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13DB03471B5D2ED500C27245 /* RCTJSONTests.m */; };
2626
13DF61B61B67A45000EDB188 /* RCTMethodArgumentTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13DF61B51B67A45000EDB188 /* RCTMethodArgumentTests.m */; };
27+
141FC1211B222EBB004D5FFB /* IntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 141FC1201B222EBB004D5FFB /* IntegrationTests.m */; };
2728
143BC5A11B21E45C00462512 /* UIExplorerSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */; };
2829
144D21241B2204C5006DB32B /* RCTImageUtilTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 144D21231B2204C5006DB32B /* RCTImageUtilTests.m */; };
2930
147CED4C1AB3532B00DA3E4C /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 147CED4B1AB34F8C00DA3E4C /* libRCTActionSheet.a */; };
@@ -191,6 +192,7 @@
191192
13CC9D481AEED2B90020D1C2 /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../../Libraries/Settings/RCTSettings.xcodeproj; sourceTree = "<group>"; };
192193
13DB03471B5D2ED500C27245 /* RCTJSONTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJSONTests.m; sourceTree = "<group>"; };
193194
13DF61B51B67A45000EDB188 /* RCTMethodArgumentTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMethodArgumentTests.m; sourceTree = "<group>"; };
195+
141FC1201B222EBB004D5FFB /* IntegrationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IntegrationTests.m; sourceTree = "<group>"; };
194196
143BC57E1B21E18100462512 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
195197
143BC5811B21E18100462512 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
196198
143BC5821B21E18100462512 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -429,6 +431,7 @@
429431
143BC5961B21E3E100462512 /* UIExplorerIntegrationTests */ = {
430432
isa = PBXGroup;
431433
children = (
434+
141FC1201B222EBB004D5FFB /* IntegrationTests.m */,
432435
143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */,
433436
83636F8E1B53F22C009F943E /* RCTUIManagerScenarioTests.m */,
434437
143BC5971B21E3E100462512 /* Supporting Files */,
@@ -864,6 +867,7 @@
864867
isa = PBXSourcesBuildPhase;
865868
buildActionMask = 2147483647;
866869
files = (
870+
141FC1211B222EBB004D5FFB /* IntegrationTests.m in Sources */,
867871
83636F8F1B53F22C009F943E /* RCTUIManagerScenarioTests.m in Sources */,
868872
143BC5A11B21E45C00462512 /* UIExplorerSnapshotTests.m in Sources */,
869873
);

packager/react-packager/src/lib/__tests__/declareOpts-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('declareOpts', function() {
6161

6262
expect(function() {
6363
validate({});
64-
}).toThrow();
64+
}).toThrow('Error validating module options: foo is required');
6565
});
6666

6767
it('should throw on invalid type', function() {
@@ -74,7 +74,7 @@ describe('declareOpts', function() {
7474

7575
expect(function() {
7676
validate({foo: 'lol'});
77-
}).toThrow();
77+
}).toThrow('Error validating module options: foo must be a number');
7878
});
7979

8080
it('should throw on extra options', function() {
@@ -87,6 +87,6 @@ describe('declareOpts', function() {
8787

8888
expect(function() {
8989
validate({foo: 1, lol: 1});
90-
}).toThrow();
90+
}).toThrow('Error validating module options: lol is not allowed');
9191
});
9292
});

0 commit comments

Comments
 (0)