Skip to content
Snippets Groups Projects
Commit 209726ad authored by Ingrid Martinsheimen Egge's avatar Ingrid Martinsheimen Egge :cow2:
Browse files

rettet opp kjøleskapstest

parent 22029ab9
No related branches found
No related tags found
1 merge request!21Merge profilinnstillinger into main
Pipeline #225273 failed
......@@ -28,7 +28,7 @@ describe('Fridge items render correctly', () => {
it('displays the name of the item', () => {
const wrapper = mount(FridgeItem, {
props: {
actualItem: normalItem,
fridgeItem: normalItem,
},
});
expect(wrapper.text()).toContain('eple');
......@@ -37,7 +37,7 @@ describe('Fridge items render correctly', () => {
it('displays the amount of the item in the fridge' , () => {
const wrapper = mount(FridgeItem, {
props: {
actualItem: normalItem,
fridgeItem: normalItem,
},
});
expect(wrapper.text()).toContain('6');
......@@ -46,7 +46,7 @@ describe('Fridge items render correctly', () => {
it('displays item image', () => {
const wrapper = mount(FridgeItem, {props: {
actualItem: normalItem,
fridgeItem: normalItem,
},
});
const itemImage = wrapper.find('img');
......@@ -58,7 +58,7 @@ describe('Fridge items render correctly', () => {
it('displays text of different color when item has expired', () => {
const wrapper = mount(FridgeItem, {
props: {
actualItem: expiredItem,
fridgeItem: expiredItem,
},
});
......@@ -71,7 +71,7 @@ describe('Behaves as expected', () => {
it('emits when the apple button is pressed', async () => {
const wrapper = mount(FridgeItem, {
props: {
actualItem: normalItem,
fridgeItem: normalItem,
},
});
......
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