Skip to content

Commit

Permalink
ci: try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coratgerl committed Sep 4, 2024
1 parent 462fed5 commit 0330df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Email password', () => {
const emailPassword = new EmailPassword()

it('should signUp with email password', async () => {
spyBunPasswordHash.mockResolvedValue('$argon2id$hashedPassword')
spyBunPasswordHash.mockResolvedValueOnce('$argon2id$hashedPassword')

const {
authenticationDataToSave: { email, password },
Expand Down Expand Up @@ -56,7 +56,7 @@ describe('Email password', () => {
} as never,
])

spyArgonPasswordVerify.mockResolvedValue(true)
spyArgonPasswordVerify.mockResolvedValueOnce(true)

const { user } = await emailPassword.onSignIn({
context: { wabe: controllers } as any,
Expand All @@ -82,7 +82,7 @@ describe('Email password', () => {
})

it('should not signIn with email password if password is undefined', async () => {
spyArgonPasswordVerify.mockResolvedValue(false)
spyArgonPasswordVerify.mockResolvedValueOnce(false)

expect(
emailPassword.onSignIn({
Expand Down Expand Up @@ -120,7 +120,7 @@ describe('Email password', () => {
} as never,
])

spyArgonPasswordVerify.mockResolvedValue(true)
spyArgonPasswordVerify.mockResolvedValueOnce(true)

expect(
emailPassword.onSignIn({
Expand Down
3 changes: 2 additions & 1 deletion packages/wabe/src/graphql/tests/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ describe('GraphQL : E2E', () => {
})
})

it('should not signIn with emailPassword if the password is incorrect', async () => {
// biome-ignore lint/suspicious/noFocusedTests: <explanation>
it.only('should not signIn with emailPassword if the password is incorrect', async () => {
expect(
client.request<any>(graphql.signInWith, {
input: {
Expand Down

0 comments on commit 0330df7

Please sign in to comment.