Skip to content

Commit

Permalink
chore(test): test out new NTARH
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Aug 26, 2021
1 parent a81a5f5 commit 158e51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit-api-memes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import EndpointMemesIdLikesId, {
config as ConfigMemesIdLikesId
} from 'universe/pages/api/v1/memes/[meme_id]/likes/[user_id]';

import type { PublicMeme } from 'types/global';
import type { PublicMeme, PublicUser } from 'types/global';

jest.mock('universe/backend');
jest.mock('universe/backend/middleware');
Expand Down Expand Up @@ -305,7 +305,7 @@ describe('api/v1/memes', () => {
it('supports pagination', async () => {
expect.hasAssertions();

await testApiHandler({
await testApiHandler<{ success: boolean; users: PublicUser[] }>({
params: { meme_id: new ObjectId().toString() },
requestPatcher: (req) => (req.url = `/?after=${new ObjectId()}`),
handler: api.memesIdLikes,
Expand Down

0 comments on commit 158e51c

Please sign in to comment.