Skip to content

Commit 787a7ef

Browse files
committed
fix: tests
1 parent 189abfd commit 787a7ef

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/integration/user-permissions-handler.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,12 @@ test('user-permissions-handler: GET /users/:address/permissions should', functio
370370
})
371371

372372
describe('when the address has mixed case', () => {
373-
let mixedCaseAddress: string
374-
375-
beforeEach(() => {
376-
mixedCaseAddress = '0xAbCdEf1234567890AbCdEf1234567890AbCdEf12'
377-
})
378-
379373
describe('and the endpoint is called', () => {
374+
let mixedCaseAddress: string
380375
let graphResult: any
381376

382377
beforeEach(() => {
378+
mixedCaseAddress = '0xAbCdEf1234567890AbCdEf1234567890AbCdEf12'
383379
graphResult = createOwnerGraphResult(mixedCaseAddress.toLowerCase(), 1)
384380
components.theGraph.landSubgraph.query = jest.fn().mockResolvedValueOnce(graphResult)
385381
})
@@ -394,9 +390,11 @@ test('user-permissions-handler: GET /users/:address/permissions should', functio
394390
})
395391

396392
describe('and the graph query is called', () => {
393+
let mixedCaseAddress: string
397394
let graphResult: any
398395

399396
beforeEach(() => {
397+
mixedCaseAddress = '0xCcDdEe9876543210CcDdEe9876543210CcDdEe98'
400398
graphResult = createOwnerGraphResult(mixedCaseAddress.toLowerCase(), 1)
401399
components.theGraph.landSubgraph.query = jest.fn().mockResolvedValueOnce(graphResult)
402400
})

0 commit comments

Comments
 (0)