Skip to content

Commit d73647e

Browse files
committed
feat: use user generation util
1 parent 8552ee7 commit d73647e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/routes/api.boxes.data.spec.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { eq } from 'drizzle-orm'
2-
import { type ActionFunctionArgs, type AppLoadContext } from 'react-router'
2+
import { type AppLoadContext } from 'react-router'
3+
import { generateTestUserCredentials } from 'tests/data/generate_test_user'
34
import { describe, it, expect, beforeAll } from 'vitest'
45
import { BASE_URL } from 'vitest.setup'
56
import { drizzleClient } from '~/db.server'
@@ -13,11 +14,7 @@ import {
1314
} from '~/routes/api.boxes.data'
1415
import { device, measurement, sensor, type User } from '~/schema'
1516

16-
const BOXES_DATA_TEST_USER = {
17-
name: 'Download',
18-
19-
password: 'secret-pass',
20-
}
17+
const BOXES_DATA_TEST_USER = generateTestUserCredentials()
2118

2219
const TEST_BOX = {
2320
name: 'Download Box',

0 commit comments

Comments
 (0)