Skip to content

Commit

Permalink
build(deps-dev): update rdf-canonize
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 29, 2024
1 parent f67b4da commit 96d9ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
7 changes: 3 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions packages/formats/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as ns from '@tpluscode/rdf-ns-builders'
import getStream from 'get-stream'
import { join, dirname } from 'path'
import { fileURLToPath } from 'url'
import { Transform } from 'readable-stream'
import formats, { mediaTypes } from '../index.js'

const { parsers, serializers } = formats
Expand Down Expand Up @@ -96,16 +95,7 @@ describe('@rdfjs-elements/formats-pretty', () => {
const serialized = await getStream(
serializers.import(format, data.toStream())
)
const parserStream = parsers
.import(format, toStream(serialized))
.pipe(
new Transform({
objectMode: true,
transform({ subject, predicate, object, graph }, _, callback) {
callback(null, $rdf.quad(subject, predicate, object, graph))
},
})
)
const parserStream = parsers.import(format, toStream(serialized))
const roundTrip = await $rdf.dataset().import(parserStream)

// then
Expand Down

0 comments on commit 96d9ece

Please sign in to comment.