diff --git a/tests/unit/item-card.spec.js b/tests/unit/item-card.spec.js deleted file mode 100644 index e8fc9c9ca1e85e227d18b9b1836550cd0d4255dd..0000000000000000000000000000000000000000 --- a/tests/unit/item-card.spec.js +++ /dev/null @@ -1,20 +0,0 @@ -import { shallowMount } from "@vue/test-utils"; -import ItemCard from "@/components/ItemCard.vue"; - -describe("ItemCard elements rendering", () => { - it("renders all paragraphs", async() => { - const wrapper = shallowMount(ItemCard); - - await wrapper.setData({ - item : { - title : 'Dyson', - adresse: 'Trondheim', - price : '500' - } - }) - - expect(wrapper.find("#title").text()).toBe("Dyson"); - expect(wrapper.find("#adress").text()).toBe("Trondheim"); - expect(wrapper.find("#price").text()).toBe("500"); - }); -});