From 4f6fd66bf38a7f12588f423542daf7e1bc9b3ced Mon Sep 17 00:00:00 2001 From: ayusharma Date: Sat, 30 Jun 2018 12:44:03 +0200 Subject: [PATCH] refactor: adds tesURL for test cases --- jest.config.unit.js | 1 + .../PackageSidebar/__snapshots__/dependencies.spec.js.snap | 2 +- test/unit/webui/components/__snapshots__/header.spec.js.snap | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jest.config.unit.js b/jest.config.unit.js index 80f3f79c0..aead37c65 100644 --- a/jest.config.unit.js +++ b/jest.config.unit.js @@ -5,6 +5,7 @@ module.exports = { verbose: true, collectCoverage: true, testEnvironment: 'jest-environment-jsdom-global', + testURL: 'http://localhost', testRegex: '(test/unit.*\\.spec|test/unit/webui/.*\\.spec)\\.js', setupFiles: [ './test/unit/setup.js' diff --git a/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap b/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap index 3c5315f22..00cb813dd 100644 --- a/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap +++ b/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` : should load the package and match snapshot 1`] = `""`; +exports[` : should load the package and match snapshot 1`] = `""`; diff --git a/test/unit/webui/components/__snapshots__/header.spec.js.snap b/test/unit/webui/components/__snapshots__/header.spec.js.snap index 2e310c915..de2440546 100644 --- a/test/unit/webui/components/__snapshots__/header.spec.js.snap +++ b/test/unit/webui/components/__snapshots__/header.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`
snapshot test shoud match snapshot 1`] = `"
npm set registry nullblank
npm adduser --registry nullblank
Login



"`; +exports[`
snapshot test shoud match snapshot 1`] = `"
npm set registry http://localhost
npm adduser --registry http://localhost
Login



"`;