From a40e7465d9251aee393fa1ffdbb1edc48ed65bbd Mon Sep 17 00:00:00 2001 From: Suwarno Ong Date: Thu, 7 Mar 2019 17:44:58 +0800 Subject: [PATCH] fix: linting test file for Status --- .../Status/__tests__/Status.test.ts | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/ui/src/components/Status/__tests__/Status.test.ts b/ui/src/components/Status/__tests__/Status.test.ts index 5e55b470..5ee39a3e 100644 --- a/ui/src/components/Status/__tests__/Status.test.ts +++ b/ui/src/components/Status/__tests__/Status.test.ts @@ -1,47 +1,47 @@ import { shallowMount } from "@vue/test-utils"; -import Status from '../Status.vue'; +import Status from "../Status.vue"; import { assert } from "chai"; describe("Status test scripts", () => { - test("Renders correctly", () => { - const statusIcon = "available"; - const type = "success"; - const status = shallowMount(Status,{ - propsData : { - statusIcon, type - } - }); - expect(status.element).toMatchSnapshot(); + test("Renders correctly", () => { + const statusIcon = "available"; + const type = "success"; + const status = shallowMount(Status, { + propsData: { + statusIcon, + type + } }); + expect(status.element).toMatchSnapshot(); + }); - test("Default slot rendering test", () => { - const slotText = "Status Slot Text"; - const status = shallowMount(Status, { - slots: { - default : slotText - } - }); - expect(status.text()).toBe(slotText); + test("Default slot rendering test", () => { + const slotText = "Status Slot Text"; + const status = shallowMount(Status, { + slots: { + default: slotText + } }); + expect(status.text()).toBe(slotText); + }); - test("Status indicator with built in status icon test", () => { - const statusIcon = "offline"; - const status = shallowMount(Status, { - propsData : { - statusIcon - } - }); - assert(status.classes(`fd-status-label--${statusIcon}`)); + test("Status indicator with built in status icon test", () => { + const statusIcon = "offline"; + const status = shallowMount(Status, { + propsData: { + statusIcon + } }); + assert(status.classes(`fd-status-label--${statusIcon}`)); + }); - test("Status indicator with semantic colors", () => { - const type = "warning"; - const status = shallowMount(Status, { - propsData : { - type - } - }); - assert(status.classes(`fd-status-label--${type}`)); - + test("Status indicator with semantic colors", () => { + const type = "warning"; + const status = shallowMount(Status, { + propsData: { + type + } }); -}); \ No newline at end of file + assert(status.classes(`fd-status-label--${type}`)); + }); +});