mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-14 09:16:34 +08:00
Fix tests
e2e flowconfig needed update, plus tweaks
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -28,3 +28,4 @@ project.xcworkspace
|
||||
# Node
|
||||
node_modules
|
||||
*.log
|
||||
.nvm
|
||||
|
||||
@@ -32,5 +32,13 @@ node_modules/react-native/Libraries/react-native/react-native-interface.js
|
||||
[options]
|
||||
module.system=haste
|
||||
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FixMe
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||
|
||||
[version]
|
||||
0.13.1
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('setup Podfile', function() {
|
||||
|
||||
it('creates a Podfile if none exists', function() {
|
||||
try {
|
||||
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
|
||||
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
|
||||
} catch(e) {}
|
||||
|
||||
var setupPodfile = install.setupPodfile();
|
||||
@@ -37,8 +37,11 @@ describe('setup Podfile', function() {
|
||||
expect(setupPodfile.podfileText).toContain(openingReactTag);
|
||||
expect(setupPodfile.podfileText).toContain(closingReactTag);
|
||||
|
||||
// cleanup
|
||||
try {
|
||||
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
|
||||
} catch(e) {}
|
||||
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
|
||||
} catch(e) {
|
||||
throw new Error('failed to cleanup Podfile', e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user