mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Use bundleForClass instead of mainBundle to find resources
Reviewed By: @jspahrsummers Differential Revision: D2485109
This commit is contained in:
committed by
facebook-github-bot-4
parent
3b6d029a55
commit
9076b71ac3
@@ -36,7 +36,7 @@
|
||||
} \
|
||||
|
||||
#define TEST_BUNDLE_PATH(name, _input, _expectedPath) \
|
||||
TEST_PATH(name, _input, [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:_expectedPath])
|
||||
TEST_PATH(name, _input, [[[NSBundle bundleForClass:[self class]] bundlePath] stringByAppendingPathComponent:_expectedPath])
|
||||
|
||||
// Basic tests
|
||||
TEST_URL(basic, @"http://example.com", @"http://example.com")
|
||||
|
||||
Reference in New Issue
Block a user