1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-29 14:43:36 +00:00

Upgrade the jest test suite to match the clients (#379)

* Upgrade the jest test suite to match the clients

* Update makeStaticByteArray
This commit is contained in:
Oscar Hinton
2023-12-12 13:45:12 +01:00
committed by GitHub
parent 36ab2953b5
commit 1546cc2012
24 changed files with 379 additions and 107 deletions

View File

@@ -28,10 +28,10 @@ export function mockEnc(s: string): EncString {
return mock;
}
export function makeStaticByteArray(length: number) {
export function makeStaticByteArray(length: number, start = 0) {
const arr = new Uint8Array(length);
for (let i = 0; i < length; i++) {
arr[i] = i;
arr[i] = start + i;
}
return arr;
}