Make the FBGlobalTransformCache-test independent from folder structure

Reviewed By: jeanlauliac

Differential Revision: D6738154

fbshipit-source-id: 65f0c7ba11b9ddf0e7614ab9158c2bcf0e0352ac
This commit is contained in:
Rafael Oleza 2018-01-18 03:45:17 -08:00 committed by Facebook Github Bot
parent cfb6174c25
commit 40497ee118
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ describe('GlobalTransformCache', () => {
fetchResultFromURI,
fetchResultURIs,
profiles: [{dev: true, minify: false, platform: 'ios'}],
rootPath: __dirname,
rootPath: '/root',
storeResults: null,
});
const transformOptions = await getTransformOptions();

View File

@ -19,12 +19,12 @@ Object {
exports[`GlobalTransformCache fetches results 1`] = `
Array [
Object {
"code": "/* code from http://globalcache.com/e4d11b53d671aa56b44f2fdda2cd77b31f3a5cad-foo.js */",
"code": "/* code from http://globalcache.com/a00af5f7803566564fc1e5bd209552899c7354e1-foo.js */",
"dependencies": Array [],
"dependencyOffsets": Array [],
},
Object {
"code": "/* code from http://globalcache.com/bf01163f2c3c2575e7da85343e20e9ff0013bbe8-bar.js */",
"code": "/* code from http://globalcache.com/50013dd319b49a40f1b3d325be62320a4c2a6c82-bar.js */",
"dependencies": Array [],
"dependencyOffsets": Array [],
},