From 4db5fc01f39b349d3601c8f4e6215391b6d4bd28 Mon Sep 17 00:00:00 2001 From: ferrannp Date: Thu, 10 Jan 2019 17:16:40 +0100 Subject: [PATCH] fix: link tests --- packages/local-cli/link/__tests__/link-test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/local-cli/link/__tests__/link-test.js b/packages/local-cli/link/__tests__/link-test.js index 96c66a65d..18d4339ef 100644 --- a/packages/local-cli/link/__tests__/link-test.js +++ b/packages/local-cli/link/__tests__/link-test.js @@ -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']; @@ -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(); });