Skip to content

Fixing bugs and linting errors #27

Fixing bugs and linting errors

Fixing bugs and linting errors #27

Triggered via push October 15, 2024 17:58
Status Failure
Total duration 1m 58s
Artifacts 2

deploy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
src/scripts/db/SparkService.test.ts > SparkService > addSpark > adds a spark to the database: src/scripts/db/SparkService.test.ts#L30
AssertionError: expected "spy" to be called with arguments: [ { …(5) } ] Received: 1st spy call: Array [ Object { - "contextTags": Any<Array>, - "creationDate": Any<Number>, + "contextTags": Array [], + "creationDate": 1729015133381, "html": "<span>Sample spark content<span>", + "originalHtml": "<span>Sample spark content<span>", "plainText": "Sample spark content", - "tags": Any<Array>, + "tags": Array [], }, ] Number of calls: 1 ❯ src/scripts/db/SparkService.test.ts:30:26
src/scripts/db/SparkService.test.ts > SparkService > listSparks > returns a sorted list of sparks from the database: src/scripts/db/SparkService.ts#L46
TypeError: this.db.sparks.orderBy is not a function ❯ SparkService.listSparksWithTags src/scripts/db/SparkService.ts:46:5 ❯ src/scripts/db/SparkService.test.ts:63:23
src/scripts/utils/stringUtils.test.ts > extractTags > returns the correct prefixTags and remainingTags: src/scripts/utils/stringUtils.test.ts#L24
AssertionError: expected [] to deeply equal [ 'tag1', 'tag2', 'tag3' ] - Expected + Received - Array [ - "tag1", - "tag2", - "tag3", - ] + Array [] ❯ src/scripts/utils/stringUtils.test.ts:24:16
src/scripts/utils/stringUtils.test.ts > extractTags > returns empty prefixTags and correct remainingTags when there are no prefix tags and one or more remaining tags: src/scripts/utils/stringUtils.test.ts#L100
AssertionError: expected [] to deeply equal [ 'tag1', 'tag2', 'tag3' ] - Expected + Received - Array [ - "tag1", - "tag2", - "tag3", - ] + Array [] ❯ src/scripts/utils/stringUtils.test.ts:100:16
src/scripts/utils/stringUtils.test.ts > extractTags > returns three prefix tags: src/scripts/utils/stringUtils.test.ts#L126
AssertionError: expected [] to deeply equal [ 'tag1', 'tag2', 'tag3' ] - Expected + Received - Array [ - "tag1", - "tag2", - "tag3", - ] + Array [] ❯ src/scripts/utils/stringUtils.test.ts:126:16
unit-tests
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
github-pages Expired
461 KB
sha256:d478c5e4451c98320a2ff120190958210da75970e8358f0d100699944ef4dbb5
playwright-report Expired
208 KB
sha256:6a41a0f4a32928e9d9e44c5e5282ed2495b6dc192b85ef641a37a4e6cf216c37