From 209726ad0c46d081c5a7023244ae5c84788fa5bd Mon Sep 17 00:00:00 2001
From: ingrid <ingrimeg@stud.ntnu.no>
Date: Thu, 4 May 2023 09:42:33 +0200
Subject: [PATCH] =?UTF-8?q?rettet=20opp=20kj=C3=B8leskapstest?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/__tests__/FridgeItem.spec.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/components/__tests__/FridgeItem.spec.js b/src/components/__tests__/FridgeItem.spec.js
index 5a7b241..2760bed 100644
--- a/src/components/__tests__/FridgeItem.spec.js
+++ b/src/components/__tests__/FridgeItem.spec.js
@@ -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,
             },
         });
 
-- 
GitLab