File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
packages/bcrypt/__tests__ Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 42
42
"nyc" : " ^15.1.0" ,
43
43
"prettier" : " ^2.1.1" ,
44
44
"putasset" : " ^5.0.3" ,
45
- "tsconfig-paths" : " ^3.9.0" ,
46
45
"typescript" : " ^4.0.2"
47
46
},
48
47
"optionalDependencies" : {
49
48
"@swc-node/core-linux-musl" : " ^0.5.0"
50
49
},
51
50
"ava" : {
52
51
"extensions" : [" ts" ],
53
- "require" : [" @swc-node/register" , " tsconfig-paths/register " ],
52
+ "require" : [" @swc-node/register" ],
54
53
"files" : [" packages/**/*.spec.ts" ]
55
54
},
56
55
"lint-staged" : {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const { hashSync } = require('bcrypt')
6
6
7
7
const fx = Buffer . from ( 'bcrypt-test-password' )
8
8
9
- const hashedPassword = hashSync ( fx )
9
+ const hashedPassword = hashSync ( fx . toString ( 'utf8' ) , 10 )
10
10
11
11
test ( 'verifySync hashed password from bcrypt should be true' , ( t ) => {
12
12
t . true ( verifySync ( fx , hashedPassword ) )
You can’t perform that action at this time.
0 commit comments