Skip to content

Commit 8efbf16

Browse files
committed
test: add return value to crypto.getRandomValues mock
1 parent 2e6efc1 commit 8efbf16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/util/test/testSetup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,6 @@ global.crypto = {
320320
for (let i = 0; i < arr.length; i++) {
321321
arr[i] = Math.floor(Math.random() * (uint8Max + 1));
322322
}
323+
return arr;
323324
},
324325
};

0 commit comments

Comments
 (0)