Skip to content

Commit 1dbb218

Browse files
committed
production: * small improvements into backend tests
1 parent 141117f commit 1dbb218

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/tests/api/12-set-user-status/auth-user.api.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ describe(`${userApiPath} and ${authApiPath} routes`, () => {
133133
});
134134

135135
expect(response.statusCode).toBe(HttpCode.OK);
136-
expect(response.json()).toEqual(expect.objectContaining(userMain));
136+
expect(response.json()).toEqual(
137+
expect.objectContaining({ id: userMain.id })
138+
);
137139
expect(response.json()).toHaveProperty('status');
138140
});
139141
});

server/tests/api/3-delete-post/post.api.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ describe(`${postApiPath} routes`, () => {
126126
expect.objectContaining({
127127
id: postToDelete.id,
128128
createdAt: postToDelete.createdAt,
129-
updatedAt: postToDelete.updatedAt,
130129
[PostPayloadKey.BODY]: postToDelete[PostPayloadKey.BODY]
131130
})
132131
);

0 commit comments

Comments
 (0)