chore: Add unit tests for UserLoginService #188
Annotations
17 errors
test/UserLoginService.test.ts > UserLoginService > should generate a token for a valid customer ID:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:26:36
|
test/UserLoginService.test.ts > UserLoginService > should return the customer ID associated with a valid token:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:38:36
|
test/UserLoginService.test.ts > UserLoginService > should remove a token from the collection:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:49:36
|
test/UserLoginService.test.ts > UserLoginService > should clear all tokens:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:56:37
|
build (22.x)
Process completed with exit code 1.
|
build (18.x)
The job was canceled because "_22_x" failed.
|
test/UserLoginService.test.ts > UserLoginService > should generate a token for a valid customer ID:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:26:36
|
test/UserLoginService.test.ts > UserLoginService > should return the customer ID associated with a valid token:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:38:36
|
test/UserLoginService.test.ts > UserLoginService > should remove a token from the collection:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:49:36
|
test/UserLoginService.test.ts > UserLoginService > should clear all tokens:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:56:37
|
build (18.x)
Process completed with exit code 1.
|
build (20.x)
The job was canceled because "_22_x" failed.
|
test/UserLoginService.test.ts > UserLoginService > should generate a token for a valid customer ID:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:26:36
|
test/UserLoginService.test.ts > UserLoginService > should return the customer ID associated with a valid token:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:38:36
|
test/UserLoginService.test.ts > UserLoginService > should remove a token from the collection:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:49:36
|
test/UserLoginService.test.ts > UserLoginService > should clear all tokens:
packages/main/src/UserLoginService.ts#L37
ReferenceError: crypto is not defined
❯ UserLoginService.generateToken packages/main/src/UserLoginService.ts:37:19
❯ test/UserLoginService.test.ts:56:37
|
build (20.x)
Process completed with exit code 1.
|