diff --git a/hearthstone/__tests__/uiComponents/app.test.tsx b/hearthstone/__tests__/uiComponents/app.test.tsx index 146ad4c6..10308796 100644 --- a/hearthstone/__tests__/uiComponents/app.test.tsx +++ b/hearthstone/__tests__/uiComponents/app.test.tsx @@ -14,7 +14,7 @@ describe('App', () => { const dispatchSyncCard = jest.fn() const cards: Card[] = dummyCardArray const loading = false; - const component: ShallowWrapper = shallow(); + const component: ShallowWrapper = shallow(); it('renders n elements in an array', () => { component.setState({cards: cards}) const cardComponent = component.find(CardComponent); @@ -35,8 +35,8 @@ describe('App', () => { const state: RootState = { ...initialState, } - state.card.cards = dummyCardArray; - state.card.cardSet = cardSet + state.card.filteredCards = dummyCardArray; + state.card.filters['cardSet'] = cardSet state.card.loading = false const store = generateMockStore(state) const component: ReactWrapper = mount(); @@ -47,7 +47,7 @@ describe('App', () => { it('checks the props', () => { - expect(component.find(App).prop('cards')).toBe(dummyCardArray) + expect(component.find(App).prop('filteredCards')).toBe(dummyCardArray) expect(component.find(App).prop('loading')).toBe(false) expect(component.find(App).prop('cardSet')).toBe(cardSet) });