Skip to content
Snippets Groups Projects
Commit f5467460 authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Delete item-card.spec.js

parent bc60b70a
No related branches found
No related tags found
Loading
Pipeline #176182 passed with stages
in 1 minute and 21 seconds
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");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment