chore: fix code coverage errors #2960
ci.yml
on: push
Matrix: unit-tests
lint
/
lint
28s
sonar-scan
1m 23s
Annotations
9 errors and 1 warning
lint / lint:
src/common/common.test.ts#L1008
Replace `"true",·DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")` with `⏎··········"true",⏎··········DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),⏎········`
|
lint / lint:
src/common/common.test.ts#L1016
Replace `"false",·DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")` with `⏎··········"false",⏎··········DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),⏎········`
|
lint / lint:
src/common/common.test.ts#L1024
Replace `"false",·DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")` with `⏎··········"false",⏎··········DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),⏎········`
|
lint / lint:
src/common/common.test.ts#L1032
Replace `"http://example.org/known/to/be/iri/from/predicate"` with `⏎··········"http://example.org/known/to/be/iri/from/predicate",⏎········`
|
lint / lint:
src/common/common.test.ts#L1070
Insert `,`
|
lint / lint:
src/parser/jsonld.test.ts#L120
Insert `⏎······`
|
lint / lint:
src/parser/jsonld.test.ts#L121
Replace `······allowContextFetching:·false` with `········allowContextFetching:·false,`
|
lint / lint:
src/parser/jsonld.test.ts#L122
Replace `····})).rejects.toThrowError('Unexpected·context·requested·[http://example.org/my/remote/context]'` with `······}),⏎····).rejects.toThrowError(⏎······"Unexpected·context·requested·[http://example.org/my/remote/context]",⏎····`
|
lint / lint
Process completed with exit code 1.
|
lint / lint:
src/parser/jsonld.test.ts#L122
Replace toThrowError() with its canonical name of toThrow()
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
code-coverage-ubuntu-latest-20.x
Expired
|
399 KB |
|