From 4ca0ec4586f1e7dac46a29f84b659d3b63e91bc0 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Fri, 23 Mar 2018 14:36:20 +0530 Subject: [PATCH] added yarn test to travis.yml (#5696) --- .travis.yml | 5 +++++ browser/app/js/objects/__tests__/actions.test.js | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index bb8bbc8c3..68127dc8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,9 @@ os: env: - ARCH=x86_64 +before_install: +- nvm install stable + script: ## Run all the tests - make @@ -21,6 +24,8 @@ script: - diff -au <(gofmt -s -d pkg) <(printf "") - make test GOFLAGS="-timeout 15m -race -v" - make coverage +- node --version +- cd browser && yarn && yarn test && cd .. after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/browser/app/js/objects/__tests__/actions.test.js b/browser/app/js/objects/__tests__/actions.test.js index 3a2b831ef..de0355e94 100644 --- a/browser/app/js/objects/__tests__/actions.test.js +++ b/browser/app/js/objects/__tests__/actions.test.js @@ -438,6 +438,11 @@ describe("Objects actions", () => { Object.defineProperty(window, "location", { set(url) { setLocation(url) + }, + get() { + return { + origin: "http://localhost:8080" + } } }) const store = mockStore({ @@ -460,6 +465,11 @@ describe("Objects actions", () => { Object.defineProperty(window, "location", { set(url) { setLocation(url) + }, + get() { + return { + origin: "http://localhost:8080" + } } }) const store = mockStore({