Skip to content

Commit

Permalink
Merge pull request #529 from zazuko/node-test-iiif
Browse files Browse the repository at this point in the history
Migrate iiif to node test
  • Loading branch information
ludovicm67 authored Oct 9, 2024
2 parents 3c335ff + 0d2c193 commit 960e519
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "index.js",
"scripts": {
"test": "c8 --all --reporter=lcovonly --reporter=text node --test"
"test": "c8 --all --reporter=lcovonly --reporter=text node --test **/*.test.js"
},
"author": "Zazuko GmbH",
"license": "MIT",
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions packages/iiif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/zazuko/trifid/issues"
},
"scripts": {
"test": "c8 --all --reporter=lcovonly --reporter=text mocha"
"test": "c8 --all --reporter=lcovonly --reporter=text node --test **/*.test.js"
},
"dependencies": {
"@tpluscode/rdf-string": "^1.3.3",
Expand All @@ -32,7 +32,6 @@
"devDependencies": {
"@types/jsonld": "^1.5.15",
"c8": "^10.1.2",
"mocha": "^10.7.3",
"trifid-core": "^5.0.0"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-check

import { strictEqual } from 'node:assert'
import { describe, it, beforeEach, afterEach } from 'node:test'

import trifidCore from 'trifid-core'
import { describe, it } from 'mocha'

import trifidPluginFactory from '../index.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/iiif/test/support/exampleCall.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-console */

import jsonld from 'jsonld'
import rdf from 'rdf-ext'
import rdf from '@zazuko/env'
import SparqlHttpClient from 'sparql-http-client'
import frame from '../../src/frame.js'
import { createApi } from '../../src/iiif.js'
Expand Down

0 comments on commit 960e519

Please sign in to comment.