From f3ecd7e7daeb974cda91e87034f9315f9c6cfea0 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Mon, 3 Apr 2023 09:33:46 -0700 Subject: [PATCH] fix ColorBar.test.ts and remove PR to main trigger from gh-pages.yml --- .github/workflows/gh-pages.yml | 2 -- tests/unit/ColorBar.test.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5b6fb7a..32ef96e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,8 +1,6 @@ name: GitHub Pages on: - pull_request: - branches: [main] push: branches: [main] workflow_dispatch: diff --git a/tests/unit/ColorBar.test.ts b/tests/unit/ColorBar.test.ts index 369ff28..2cfac35 100644 --- a/tests/unit/ColorBar.test.ts +++ b/tests/unit/ColorBar.test.ts @@ -32,7 +32,7 @@ describe(`ColorBar`, () => { expect(cbar_div.style.width).toBe(`200px`) const tick_labels = document.querySelectorAll(`.colorbar > div > span`) - expect(tick_labels.length).toBe(5) + expect(tick_labels.length).toBe(6) const wrapper = doc_query(`.colorbar`) expect(wrapper.style.margin).toBe(`10px`)