refactor: use sync bcrypt to avoid issues with worker perms
refactor: fix up includes
This commit is contained in:
parent
e397bc884b
commit
1a02dcfcc3
27 changed files with 104 additions and 178 deletions
|
@ -1,10 +1,10 @@
|
|||
import { api, API_CLIENT } from '../../../utils/api.ts';
|
||||
import * as asserts from 'jsr:@std/assert';
|
||||
import * as asserts from '@std/assert';
|
||||
import { USER } from '../../../models/user.ts';
|
||||
import { EPHEMERAL_SERVER, get_ephemeral_listen_server, random_username } from '../../helpers.ts';
|
||||
import { Cookie, getSetCookies } from '@std/http/cookie';
|
||||
import { encodeBase64 } from '@std/encoding';
|
||||
import { generateTotp } from '@stdext/crypto/totp';
|
||||
import { generateTotp } from '../../../utils/totp.ts';
|
||||
|
||||
Deno.test({
|
||||
name: 'API - USERS - Create',
|
||||
|
|
|
@ -4,7 +4,7 @@ import { USER } from '../../../models/user.ts';
|
|||
import { EPHEMERAL_SERVER, get_ephemeral_listen_server, random_username } from '../../helpers.ts';
|
||||
import { Cookie, getSetCookies } from '@std/http/cookie';
|
||||
import { encodeBase64 } from '@std/encoding';
|
||||
import { generateTotp } from '@stdext/crypto/totp';
|
||||
import { generateTotp } from '../../../utils/totp.ts';
|
||||
|
||||
Deno.test({
|
||||
name: 'API - USERS - Delete',
|
||||
|
|
|
@ -4,7 +4,7 @@ import { USER } from '../../../models/user.ts';
|
|||
import { EPHEMERAL_SERVER, get_ephemeral_listen_server, random_username } from '../../helpers.ts';
|
||||
import { Cookie, getSetCookies } from '@std/http/cookie';
|
||||
import { encodeBase64 } from '@std/encoding';
|
||||
import { generateTotp } from '@stdext/crypto/totp';
|
||||
import { generateTotp } from '../../../utils/totp.ts';
|
||||
|
||||
Deno.test({
|
||||
name: 'API - USERS - Login (password)',
|
||||
|
|
|
@ -4,7 +4,7 @@ import { USER } from '../../../models/user.ts';
|
|||
import { EPHEMERAL_SERVER, get_ephemeral_listen_server, random_username } from '../../helpers.ts';
|
||||
import { Cookie, getSetCookies } from '@std/http/cookie';
|
||||
import { encodeBase64 } from '@std/encoding';
|
||||
import { generateTotp } from '@stdext/crypto/totp';
|
||||
import { generateTotp } from '../../../utils/totp.ts';
|
||||
|
||||
Deno.test({
|
||||
name: 'API - USERS - Update',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue