Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
m2rads committed Nov 23, 2024
1 parent f01d5e7 commit 2693e9a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/__tests__/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ define('Validate login feature implemented with Clerk', async () => {
.given('Github username and password', {
username: process.env.GITHUB_USERNAME || '',
password: process.env.GITHUB_PASSWORD || ''
}, async () => {
// Check if user exists in customers table
})
.when('Logged in', async () => {
console.log('Waiting for db validatoin');
const [customer] = await db.execute<{ id: string, name: string, email: string }>(sql`
SELECT * FROM customers WHERE email = '[email protected]'
`);
Expand All @@ -33,8 +34,5 @@ define('Validate login feature implemented with Clerk', async () => {
console.log('Customer [email protected] not found in database');
}
})
.when('Logged in', async () => {
console.log('Waiting for redirect...');
})
.expect('should redirect to /dashboard');
});

0 comments on commit 2693e9a

Please sign in to comment.