Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 62ae39d

Browse files
author
wzedi
committed
updates integration test for dynamodb
1 parent 404beb0 commit 62ae39d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/__tests__/integration.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('Mutations', () => {
115115
});
116116

117117
userAPI.store = mockStore;
118-
userAPI.store.users.findOrCreate.mockReturnValueOnce([
118+
userAPI.store.users.find.mockReturnValueOnce([
119119
{id: 1, email: '[email protected]'},
120120
]);
121121

@@ -142,9 +142,9 @@ describe('Mutations', () => {
142142

143143
// book the trip in the store
144144
userAPI.store = mockStore;
145-
userAPI.store.trips.findOrCreate
146-
.mockReturnValueOnce([{get: () => ({launchId: 1})}])
147-
.mockReturnValueOnce([{get: () => ({launchId: 2})}]);
145+
userAPI.store.trips.find
146+
.mockReturnValueOnce([{launchId: 1}])
147+
.mockReturnValueOnce([{launchId: 2}]);
148148

149149
// check if user is booked
150150
userAPI.store.trips.findAll.mockReturnValue([{}]);

0 commit comments

Comments
 (0)