Skip to content

Update error message and throw on parse non-string #148

Update error message and throw on parse non-string

Update error message and throw on parse non-string #148

Triggered via pull request August 3, 2026 16:05
Status Failure
Total duration 24s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

29 errors
Node.js 26
Process completed with exit code 1.
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string pass: src/format.spec.ts#L62
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:62:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string name: src/format.spec.ts#L55
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:55:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without pass: src/format.spec.ts#L48
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:48:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without name: src/format.spec.ts#L41
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:41:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a string: src/format.spec.ts#L34
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:34:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a number: src/format.spec.ts#L27
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:27:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject null: src/format.spec.ts#L20
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:20:16
src/format.spec.ts > format(credentials) > arguments > credentials > should be required: src/format.spec.ts#L8
AssertionError: expected [Function] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:8:16
Node.js 22
The strategy configuration was canceled because "test._26" failed
Node.js 22
Process completed with exit code 1.
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string pass: src/format.spec.ts#L62
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:62:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string name: src/format.spec.ts#L55
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:55:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without pass: src/format.spec.ts#L48
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:48:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without name: src/format.spec.ts#L41
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:41:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a string: src/format.spec.ts#L34
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:34:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a number: src/format.spec.ts#L27
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:27:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject null: src/format.spec.ts#L20
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:20:16
src/format.spec.ts > format(credentials) > arguments > credentials > should be required: src/format.spec.ts#L8
AssertionError: expected [Function] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:8:16
Node.js latest
The strategy configuration was canceled because "test._26" failed
Node.js latest
Process completed with exit code 1.
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string pass: src/format.spec.ts#L62
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:62:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object with non-string name: src/format.spec.ts#L55
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:55:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without pass: src/format.spec.ts#L48
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:48:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject an object without name: src/format.spec.ts#L41
AssertionError: expected [Function bound format] to throw error matching /"credentials" must have string proper…/ but got 'Object must have string properties "n…' - Expected: /"credentials" must have string properties "name" and "pass"/ + Received: "Object must have string properties \"name\" and \"pass\"" ❯ src/format.spec.ts:41:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a string: src/format.spec.ts#L34
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:34:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject a number: src/format.spec.ts#L27
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:27:16
src/format.spec.ts > format(credentials) > arguments > credentials > should reject null: src/format.spec.ts#L20
AssertionError: expected [Function bound format] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:20:16
src/format.spec.ts > format(credentials) > arguments > credentials > should be required: src/format.spec.ts#L8
AssertionError: expected [Function] to throw error matching /"credentials" must be an object/ but got 'Expected an object' - Expected: /"credentials" must be an object/ + Received: "Expected an object" ❯ src/format.spec.ts:8:16