Skip to content

Commit

Permalink
build(deps-dev): updat esmock
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 14, 2023
1 parent 38eaa77 commit f0547e9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5,651 deletions.
24 changes: 12 additions & 12 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/hydra-box-web-access-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/supertest": "^2.0.11",
"@zazuko/env": "^1.1.1",
"chai": "^4.3.4",
"esmock": "^2.3.8",
"esmock": "^2.5.1",
"express": "^4.17.1",
"http-status": "^1.5.0",
"mocha": "^10.2.0",
Expand Down
7 changes: 2 additions & 5 deletions packages/hydra-box-web-access-control/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import module from 'module'
import { NamedNode } from '@rdfjs/types'
import express, { Express } from 'express'
import request from 'supertest'
Expand All @@ -11,8 +10,6 @@ import $rdf from '@zazuko/env'
import esmock from 'esmock'
import AccessControl from '../index.js'

const require = module.createRequire(import.meta.url)

describe('hydra-box-web-access-control', () => {
let app: Express
let acl: sinon.SinonStubbedInstance<typeof import('rdf-web-access-control')>
Expand All @@ -34,8 +31,8 @@ describe('hydra-box-web-access-control', () => {
})

acl = { check: sinon.stub() }
;({ default: accessControl } = await esmock('../index.ts', {
[require.resolve('rdf-web-access-control')]: acl,
;({ default: accessControl } = await esmock('../index.js', {
'rdf-web-access-control': acl,
}))
})

Expand Down
Loading

0 comments on commit f0547e9

Please sign in to comment.