Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Jan 27, 2025
1 parent a65ecf5 commit e14ec88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/gatsby-site/server/tests/entities.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, jest, it } from '@jest/globals';
import { ApolloServer } from "@apollo/server";
import { makeRequest, seedFixture, startTestServer } from "./utils";
import { makeRequest, mockSession, seedFixture, startTestServer } from "./utils";
import * as context from '../context';

describe(`Entities`, () => {
Expand Down Expand Up @@ -73,7 +73,7 @@ describe(`Entities`, () => {
});


jest.spyOn(context, 'verifyToken').mockResolvedValue({ sub: "123" })
mockSession("123");

const response = await makeRequest(url, mutationData);

Expand Down
3 changes: 1 addition & 2 deletions site/gatsby-site/server/tests/notifications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,8 +1629,7 @@ describe(`Notifications`, () => {
}
});


jest.spyOn(context, 'verifyToken').mockResolvedValue({ sub: "123" })
mockSession('123');

// No recipients
jest.spyOn(common, 'getUserAdminData').mockResolvedValue(null);
Expand Down

0 comments on commit e14ec88

Please sign in to comment.