From b4c13929e2eeb2a697978b0d55f10139272326e3 Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Thu, 11 Jun 2020 07:32:26 -0700 Subject: [PATCH] Fix typo Summary: Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D21996455 fbshipit-source-id: 8fc339f987957cf58b6ff56c1b4d28f8725d70c9 --- RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m | 4 ++-- React/Base/RCTBundleURLProvider.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m b/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m index a167f6c504a8fd..366596520a2159 100644 --- a/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m +++ b/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m @@ -24,7 +24,7 @@ URLWithString: [NSString stringWithFormat: - @"http://localhost:8081/%@.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runMdoule=true&app=com.apple.dt.xctest.tool", + @"http://localhost:8081/%@.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.apple.dt.xctest.tool", testFile]]; } @@ -34,7 +34,7 @@ URLWithString: [NSString stringWithFormat: - @"http://192.168.1.1:8081/%@.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runMdoule=true&app=com.apple.dt.xctest.tool", + @"http://192.168.1.1:8081/%@.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.apple.dt.xctest.tool", testFile]]; } diff --git a/React/Base/RCTBundleURLProvider.m b/React/Base/RCTBundleURLProvider.m index 92b0eef7217d99..0cdef61954e53e 100644 --- a/React/Base/RCTBundleURLProvider.m +++ b/React/Base/RCTBundleURLProvider.m @@ -215,7 +215,7 @@ + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot { NSString *path = [NSString stringWithFormat:@"/%@.bundle", bundleRoot]; // When we support only iOS 8 and above, use queryItems for a better API. - NSString *query = [NSString stringWithFormat:@"platform=ios&dev=%@&minify=%@&modulesOnly=%@&runMdoule=%@", + NSString *query = [NSString stringWithFormat:@"platform=ios&dev=%@&minify=%@&modulesOnly=%@&runModule=%@", enableDev ? @"true" : @"false", enableMinification ? @"true" : @"false", modulesOnly ? @"true" : @"false",