From 7b4ca4e4faca567d2dd8ac3d0051b707aaa4153e Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sat, 10 Apr 2021 17:14:28 -0700 Subject: [PATCH] Fixes tests for hourstyle --- assets/components/LogEventSource.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/components/LogEventSource.spec.js b/assets/components/LogEventSource.spec.js index 4d2142b1..69919503 100644 --- a/assets/components/LogEventSource.spec.js +++ b/assets/components/LogEventSource.spec.js @@ -33,7 +33,7 @@ describe("", () => { localVue.component("log-viewer", LogViewer); - const state = { searchFilter, settings: { size: "medium", showTimestamp: true } }; + const state = { searchFilter, settings: { size: "medium", showTimestamp: true, hourStyle: "auto" } }; const store = new Vuex.Store({ state, @@ -144,7 +144,7 @@ describe("", () => { await wrapper.vm.$nextTick(); expect(wrapper.find("ul.events")).toMatchInlineSnapshot(`
    -
  • "This is a message."
  • +
  • "This is a message."
`); }); @@ -159,7 +159,7 @@ describe("", () => { await wrapper.vm.$nextTick(); expect(wrapper.find("ul.events")).toMatchInlineSnapshot(`
    -
  • blackwhite
  • +
  • blackwhite
`); }); @@ -174,7 +174,7 @@ describe("", () => { await wrapper.vm.$nextTick(); expect(wrapper.find("ul.events")).toMatchInlineSnapshot(`
    -
  • <test>foo bar</test>
  • +
  • <test>foo bar</test>
`); }); @@ -192,7 +192,7 @@ describe("", () => { await wrapper.vm.$nextTick(); expect(wrapper.find("ul.events")).toMatchInlineSnapshot(`
    -
  • This is a test <hi></hi>
  • +
  • This is a test <hi></hi>
`); });