forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ci path problem on Windows (facebook#21203)
Summary: fix ci path problem on Windows pass all current ci. none [GENERAL] [INTERNAL] [CI] - fix ci path problem on Windows Pull Request resolved: facebook#21203 Differential Revision: D9943608 Pulled By: hramos fbshipit-source-id: 66e3e196a6c0015e0472851abeee32de9fef140c
- Loading branch information
1 parent
533f5ad
commit 1335dc1
Showing
5 changed files
with
587 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
jest.dontMock('../getAssetDestPathIOS'); | ||
|
||
const getAssetDestPathIOS = require('../getAssetDestPathIOS'); | ||
const path = require('path'); | ||
|
||
describe('getAssetDestPathIOS', () => { | ||
it('should build correct path', () => { | ||
|
@@ -22,7 +23,7 @@ describe('getAssetDestPathIOS', () => { | |
httpServerLocation: '/assets/test', | ||
}; | ||
|
||
expect(getAssetDestPathIOS(asset, 1)).toBe('assets/test/icon.png'); | ||
expect(getAssetDestPathIOS(asset, 1)).toBe(path.normalize('assets/test/icon.png')); | ||
}); | ||
|
||
it('should consider scale', () => { | ||
|
@@ -32,7 +33,7 @@ describe('getAssetDestPathIOS', () => { | |
httpServerLocation: '/assets/test', | ||
}; | ||
|
||
expect(getAssetDestPathIOS(asset, 2)).toBe('assets/test/[email protected]'); | ||
expect(getAssetDestPathIOS(asset, 3)).toBe('assets/test/[email protected]'); | ||
expect(getAssetDestPathIOS(asset, 2)).toBe(path.normalize('assets/test/[email protected]')); | ||
expect(getAssetDestPathIOS(asset, 3)).toBe(path.normalize('assets/test/[email protected]')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.