Skip to content

Commit

Permalink
change field name based on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Nov 26, 2024
1 parent 31ad1c3 commit 3ebd200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolvers/qAccResolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function userCapsTestCases() {
// Simulate valid GitcoinPassport score
sinon.stub(user, 'analysisScore').value(80);
sinon.stub(user, 'passportScoreUpdateTimestamp').value(new Date());
sinon.stub(user, 'hasEnoughAnalysisScore').value(true);
sinon.stub(user, 'hasEnoughGitcoinAnalysisScore').value(true);

// Act: Call the resolver through a GraphQL query
const response: ExecutionResult<{
Expand Down Expand Up @@ -375,7 +375,7 @@ function userCapsTestCases() {
it('should throw an error if the user does not meet the minimum analysis score', async () => {
// Simulate invalid GitcoinPassport score
sinon.stub(user, 'analysisScore').value(40); // Below threshold
sinon.stub(user, 'hasEnoughAnalysisScore').value(false);
sinon.stub(user, 'hasEnoughGitcoinAnalysisScore').value(false);

// Act: Call the resolver through a GraphQL query and expect an error
try {
Expand Down

0 comments on commit 3ebd200

Please sign in to comment.