Skip to content

Commit

Permalink
chore: removed rdf-dataset-ext dep
Browse files Browse the repository at this point in the history
  • Loading branch information
bergos committed Jun 7, 2024
1 parent 09f3c4f commit 5c3ac2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"c8": "^9.1.0",
"codecov": "^3.8.3",
"mocha": "^10.4.0",
"rdf-dataset-ext": "^1.0.0",
"rdf-test": "^0.1.0",
"stricter-standard": "^0.3.1"
}
}
3 changes: 1 addition & 2 deletions test/Traverser.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { strictEqual } from 'assert'
import toNT from '@rdfjs/to-ntriples'
import { describe, it } from 'mocha'
import toCanonical from 'rdf-dataset-ext/toCanonical.js'
import Traverser from '../Traverser.js'
import TraverserExample, {
backwardStop,
Expand Down Expand Up @@ -255,7 +254,7 @@ describe('Traverser', function () {

const result = traverser.reduce(example, example.reduce, '')

strictEqual(result, toCanonical(example.dataset))
strictEqual(result, toNT(example.dataset))
})
})
})
4 changes: 2 additions & 2 deletions test/support/Example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deepStrictEqual, strictEqual } from 'assert'
import toNT from '@rdfjs/to-ntriples'
import toCanonical from 'rdf-dataset-ext/toCanonical.js'
import { datasetEqual } from 'rdf-test/assert.js'
import rdf from './factory.js'

const ns = rdf.namespace('http://example.org/')
Expand Down Expand Up @@ -128,7 +128,7 @@ class Example {
}

checkMatch (result) {
strictEqual(toCanonical(result), toCanonical(this.match))
datasetEqual(result, this.match)
}
}

Expand Down

0 comments on commit 5c3ac2b

Please sign in to comment.