Skip to content

Commit

Permalink
Merge pull request #78 from ferrannp/fix/link-assets-test
Browse files Browse the repository at this point in the history
fix: link tests
  • Loading branch information
Esemesek authored Jan 10, 2019
2 parents 5c35f00 + 4db5fc0 commit c503519
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/local-cli/link/__tests__/link-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('link', () => {
});
});

it('should copy assets from both project and dependencies projects', done => {
it('should copy assets only from the specific dependency that we are linking', done => {
const dependencyAssets = ['Fonts/Font.ttf'];
const projectAssets = ['Fonts/FontC.ttf'];

Expand Down Expand Up @@ -147,9 +147,7 @@ describe('link', () => {

link(['react-native-blur'], context).then(() => {
expect(copyAssets.mock.calls).toHaveLength(2);
expect(copyAssets.mock.calls[0][0]).toEqual(
projectAssets.concat(dependencyAssets)
);
expect(copyAssets.mock.calls[0][0]).toEqual(dependencyAssets);
jest.unmock('../../core/getAssets');
done();
});
Expand Down

0 comments on commit c503519

Please sign in to comment.