Skip to content

Commit 7079a9c

Browse files
Use idDivider in tests
1 parent ccdb1cc commit 7079a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/server/tests/api/rest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ describe('REST server tests', () => {
328328
links: {
329329
self: 'http://localhost/api/post/1/relationships/likes',
330330
},
331-
data: [{ type: 'postLike', id: '1_user1' }],
331+
data: [{ type: 'postLike', id: `1${idDivider}user1` }],
332332
});
333333
});
334334

@@ -1937,7 +1937,7 @@ describe('REST server tests', () => {
19371937
path: '/post/1/relationships/likes',
19381938
query: {},
19391939
requestBody: {
1940-
data: [{ type: 'postLike', id: '1_user1', attributes: { superLike: true } }],
1940+
data: [{ type: 'postLike', id: `1${idDivider}user1`, attributes: { superLike: true } }],
19411941
},
19421942
prisma,
19431943
});

0 commit comments

Comments
 (0)