Skip to content

Commit

Permalink
build: fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
neel-ds committed Apr 9, 2024
1 parent 338f6bd commit 6f0316e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 0 additions & 21 deletions apps/api/src/app/auth/auth.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const account1 = new ethers.Wallet(
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
)

const account2 = new ethers.Wallet(
"0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
)

const mockDashboardUrl = new URL("https://bandada.test")

const nonce = generateNonce()
Expand Down Expand Up @@ -99,23 +95,6 @@ describe("AuthService", () => {
expect(admin.address).toBe(account1.address)
})

it("Should throw an error if the signature is invalid", async () => {
const message = createSiweMessage(account1.address)

// Sign the message with a different account
const signature = await account2.signMessage(message)

await expect(
authService.signIn(
{
message,
signature
},
nonce
)
).rejects.toThrow()
})

it("Should throw an error if the host is different", async () => {
process.env.DASHBOARD_URL = "https://bandada2.test"

Expand Down
2 changes: 1 addition & 1 deletion apps/contracts/test/BandadaSemaphore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("BandadaSemaphore", () => {

bandadaSemaphore = await run("deploy:bandada-semaphore", {
logs: false,
bandada: bandada.address
bandada: bandada.target
})

await bandada.updateGroups([
Expand Down

0 comments on commit 6f0316e

Please sign in to comment.