Skip to content

Commit

Permalink
test: improve variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieuka committed Nov 3, 2024
1 parent 0f7ce15 commit 68c3bb2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/routes/api/user/user.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/* TODO
- Refactor: Extract utility functions from the createUser ?
- Update: Modify all test files to ensure passwords match the new password pattern.
- Rename: Update test descriptions for clarity and consistency.
*/

import { it, describe, before } from 'node:test'
import assert from 'node:assert'
import { build } from '../../../helper.js'
Expand All @@ -27,8 +21,9 @@ async function deleteUser (
describe('User API', () => {
before(async () => {
const app = await build()
// Fill the password with the hashed value of `Password123$`
const Password123$ = 'ff57faf149a2bcab41bf7ecbbc8ce491.3ce6b34ea3edb3f0a09f811440885bfeda612832c04bfddc9d4b906019d97fa0'
// Hashed value of `Password123$`
const PASSWORD_HASH = 'ff57faf149a2bcab41bf7ecbbc8ce491.3ce6b34ea3edb3f0a09f811440885bfeda612832c04bfddc9d4b906019d97fa0'
const Password123$ = PASSWORD_HASH
const users = ['random-user-0', 'random-user-1', 'random-user-2', 'random-user-3', 'random-user-4', 'random-user-5']

for (const user of users) {
Expand Down

0 comments on commit 68c3bb2

Please sign in to comment.