Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed May 15, 2024
1 parent aff362d commit f3bae80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/lib/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import $rdf from 'rdf-ext'
import { cc } from '@cube-creator/core/namespace'
import TermMap from '@rdfjs/term-map'
import { GraphPointer } from 'clownface'
import { ValidationError } from 'barnard59-validate-shacl/lib/errors'
import { ValidationError } from 'barnard59-shacl/lib/errors'
import DatasetExt from 'rdf-ext/lib/Dataset'
import { createPlaygroundUrl } from '@zazuko/shacl-playground'
import { shorten } from '@zazuko/s'
Expand Down
4 changes: 2 additions & 2 deletions cli/lib/log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import winston from 'winston'
import { OnViolation } from 'barnard59-validate-shacl'
import { OnViolation } from 'barnard59-shacl/validate'
import { fromPointer } from '@rdfine/shacl/lib/ValidationReport'

export const logger = winston.createLogger({
Expand All @@ -12,7 +12,7 @@ export const logger = winston.createLogger({
],
})

export function prettyPrintReport({ context, report }: OnViolation) {
export const prettyPrintReport: OnViolation = ({ context, report }) => {
const jsonld = fromPointer(report.pointer).toJSON()
context.logger.error(JSON.stringify(jsonld, null, 2))

Expand Down
1 change: 1 addition & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"@types/sinon-chai": "^3.2.4",
"@types/sparql-http-client": "^2",
"@types/through2": "^2.0.36",
"barnard59-core": "^6.0.0",
"chai": "^4.3.4",
"dotenv": "^16.0.0",
"dotenv-cli": "^5.0.0",
Expand Down
5 changes: 2 additions & 3 deletions cli/test/lib/metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import type { DatasetCore } from '@rdfjs/types'
import { insertTestProject } from '@cube-creator/testing/lib/seedData'
import { before, describe, it } from 'mocha'
import getStream from 'get-stream'
import { Context } from 'barnard59-core/lib/Pipeline'
import env from '@cube-creator/core/env'
import clownface, { GraphPointer } from 'clownface'
import { expect } from 'chai'
import { VariableMap, Variables } from 'barnard59-core'
import { Context, VariableMap, Variables } from 'barnard59-core'
import { Hydra } from 'alcaeus/node'
import * as Models from '@cube-creator/model'
import { toRdf } from 'rdf-literal'
Expand Down Expand Up @@ -36,7 +35,7 @@ describe('@cube-creator/cli/lib/metadata @SPARQL', function () {
['timestamp', toRdf(new Date())],
['metadata', $rdf.dataset()],
])
context = {
context = <any>{
variables,
logger,
}
Expand Down

0 comments on commit f3bae80

Please sign in to comment.