Skip to content

Commit 2a072ed

Browse files
committed
style: update mocha config
1 parent e6ca8e3 commit 2a072ed

46 files changed

Lines changed: 566 additions & 493 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 64 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"devDependencies": {
2020
"@changesets/cli": "^2.27.11",
2121
"@rdfjs/types": "^1.1.2",
22-
"@tpluscode/eslint-config": "0.5.0",
22+
"@tpluscode/eslint-config": "0.6.4",
2323
"@types/chai-subset": "^1",
2424
"@types/mocha": "^10.0.10",
2525
"@types/sinon-chai": "^4.0.0",

packages/processor/test/DuplicatePatternRemover.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { expect } from 'chai'
33
import { DuplicatePatternRemover } from '../DuplicatePatternRemover.js'
44
import { loadQuery, stringifyQuery } from './lib/query.js'
55

6-
describe('DuplicatePatternRemover', () => {
7-
it('removes equal consecutive OPTIONAL graph patterns', () => {
6+
describe('DuplicatePatternRemover', function () {
7+
it('removes equal consecutive OPTIONAL graph patterns', function () {
88
// given
99
const processor = new DuplicatePatternRemover(rdf)
1010

@@ -16,7 +16,7 @@ describe('DuplicatePatternRemover', () => {
1616
.to.deep.equal(stringifyQuery(loadQuery('duplicate-optional.expected.rq')))
1717
})
1818

19-
it('removes equal non-consecutive OPTIONAL graph patterns', () => {
19+
it('removes equal non-consecutive OPTIONAL graph patterns', function () {
2020
// given
2121
const processor = new DuplicatePatternRemover(rdf)
2222

@@ -28,7 +28,7 @@ describe('DuplicatePatternRemover', () => {
2828
.to.deep.equal(stringifyQuery(loadQuery('duplicate-optional.not-adjacent.expected.rq')))
2929
})
3030

31-
it('preserves OPTIONAL graph patterns if they are not exactly the same', () => {
31+
it('preserves OPTIONAL graph patterns if they are not exactly the same', function () {
3232
// given
3333
const processor = new DuplicatePatternRemover(rdf)
3434

@@ -40,7 +40,7 @@ describe('DuplicatePatternRemover', () => {
4040
.to.deep.equal(stringifyQuery(loadQuery('similar-optional.rq')))
4141
})
4242

43-
it('preserves OPTIONAL graph patterns if they contain non-BGP patterns', () => {
43+
it('preserves OPTIONAL graph patterns if they contain non-BGP patterns', function () {
4444
// given
4545
const processor = new DuplicatePatternRemover(rdf)
4646

packages/processor/test/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import { loadQuery, stringifyQuery } from './lib/query.js'
88

99
const cwd = url.fileURLToPath(new URL('.', import.meta.url))
1010

11-
describe('@hydrofoil/sparql-processor', () => {
12-
describe('QueryProcessor', () => {
13-
context('no-op processing', () => {
11+
describe('@hydrofoil/sparql-processor', function () {
12+
describe('QueryProcessor', function () {
13+
context('no-op processing', function () {
1414
glob.sync('queries/*.{rq,ru}', { cwd }).forEach((file) => {
1515
const name = path.basename(file)
1616

17-
it(`does not modify the query (${name})`, () => {
17+
it(`does not modify the query (${name})`, function () {
1818
const processor = new (class extends QueryProcessor {})(rdf)
1919

2020
const processed = processor.process(loadQuery(name))

0 commit comments

Comments
 (0)