mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
Fix lint errors 1/n
Reviewed By: davidaurelio Differential Revision: D4627645 fbshipit-source-id: 3cf368c6a24a555b7d0a39045f6ba6fd92ae34e1
This commit is contained in:
committed by
Facebook Github Bot
parent
05c36b463b
commit
5403946f09
@@ -54,7 +54,7 @@ describe('optimizing JS modules', () => {
|
||||
const result = optimizeModule(transformResult, optimizationOptions);
|
||||
optimized = result.transformed.default;
|
||||
injectedVars = optimized.code.match(/function\(([^)]*)/)[1].split(',');
|
||||
[,requireName,,, dependencyMapName] = injectedVars;
|
||||
[, requireName,,, dependencyMapName] = injectedVars;
|
||||
});
|
||||
|
||||
it('optimizes code', () => {
|
||||
|
||||
@@ -224,7 +224,7 @@ function createTestData() {
|
||||
if (path.node.callee.name === 'some') {
|
||||
path.replaceWith(path.node.arguments[0]);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
return {
|
||||
bodyAst: fileAst.program.body,
|
||||
|
||||
Reference in New Issue
Block a user