Skip to content

chore: Add unit tests for UserLoginService #188

chore: Add unit tests for UserLoginService

chore: Add unit tests for UserLoginService #188

Triggered via push June 8, 2024 11:42
Status Failure
Total duration 24s
Artifacts

node.js.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

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.