diff --git a/frontend/components/core/BaseSlider.vue b/frontend/components/core/BaseSlider.vue new file mode 100644 index 0000000000..920f95c437 --- /dev/null +++ b/frontend/components/core/BaseSlider.vue @@ -0,0 +1,100 @@ + + + + + + + diff --git a/frontend/components/text2text/results/Text2TextList.vue b/frontend/components/text2text/results/Text2TextList.vue index 576fa35241..335b0fe580 100644 --- a/frontend/components/text2text/results/Text2TextList.vue +++ b/frontend/components/text2text/results/Text2TextList.vue @@ -58,11 +58,7 @@ - +

@@ -99,35 +95,13 @@

Score: {{ sentence.score | percent }}
-
- - - - {{ itemNumber + 1 }} of {{ sentences.length }} predictions - - - -
+
{ + let spy = jest.spyOn(console, "error"); + afterEach(() => spy.mockReset()); + + test("renders properly", () => { + const wrapper = mountBaseSlider(); + expect(wrapper.html()).toMatchSnapshot(); + }); +}); diff --git a/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap b/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap new file mode 100644 index 0000000000..d09bf26c40 --- /dev/null +++ b/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`BaseSlider renders properly 1`] = ` +
+ 1 of 2 sentences + +
+`;