Skip to content

Commit

Permalink
fix(json-modules): assert -> with (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Dec 9, 2024
1 parent b4668b9 commit c528e55
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 35 deletions.
16 changes: 15 additions & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,19 @@ rules:
overrides:
- rules:
no-new: off
'prefer-arrow-callback': off
'func-names': off
'no-unused-expressions': off
'valid-jsdoc': off
'import/no-extraneous-dependencies':
- error
- devDependencies: true
optionalDependencies: false
peerDependencies: false
'no-console': off
parserOptions:
requireConfigFile: false
env:
mocha: true
files:
- './test/**/*.spec.js'
- './test/**/*.spec.js'
16 changes: 0 additions & 16 deletions test/.eslintrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion test/unit/alert.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import Alert from '../../lib/models/Alert.js';
import Alerts from '../data/Alerts.json' assert { type: 'json' };
import Alerts from '../data/Alerts.json' with { type: 'json' };

chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/conclavechallenge.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import ConclaveChallenge from '../../lib/models/ConclaveChallenge.js';
import challenges from '../data/PVPChallengeInstances.json' assert { type: 'json' };
import challenges from '../data/PVPChallengeInstances.json' with { type: 'json' };

const should = chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/deeparchimedea.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chai from 'chai';
import sinonChai from 'sinon-chai';

import DeepArchidemea from '../../lib/models/DeepArchidemea.js';
import data from '../data/DeepArchimedea.json' assert { type: 'json' };
import data from '../data/DeepArchimedea.json' with { type: 'json' };

chai.should();
chai.use(sinonChai);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/event.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import Event from '../../lib/models/WorldEvent.js';
import events from '../data/Goals.json' assert { type: 'json' };
import events from '../data/Goals.json' with { type: 'json' };

chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/kuva.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import Kuva from '../../lib/models/Kuva.js';
import mockKuva from '../data/kuvalog.json' assert { type: 'json' };
import mockKuva from '../data/kuvalog.json' with { type: 'json' };

const should = chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/mission.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import Mission from '../../lib/models/Mission.js';
import Alerts from '../data/Alerts.json' assert { type: 'json' };
import Alerts from '../data/Alerts.json' with { type: 'json' };

chai.should();

Expand Down
6 changes: 3 additions & 3 deletions test/unit/news.spec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as chai from 'chai';

import News from '../../lib/models/News.js';
import testData from '../data/News.json' assert { type: 'json' };
import realTestData from '../data/RealNews.json' assert { type: 'json' };
import languageTestData from '../data/LanguageNews.json' assert { type: 'json' };
import testData from '../data/News.json' with { type: 'json' };
import realTestData from '../data/RealNews.json' with { type: 'json' };
import languageTestData from '../data/LanguageNews.json' with { type: 'json' };

chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/nightwave.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import Nightwave from '../../lib/models/Nightwave.js';
import nwdata from '../data/Nightwave.json' assert { type: 'json' };
import nwdata from '../data/Nightwave.json' with { type: 'json' };

chai.should();

Expand Down
10 changes: 5 additions & 5 deletions test/unit/syndicatejob.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as chai from 'chai';

import SyndicateJob from '../../lib/models/SyndicateJob.js';
import isoVaultBounty from '../data/isoVaultBounty.json' assert { type: 'json' };
import plagueStarBounty from '../data/plagueStarBounty.json' assert { type: 'json' };
import CetusFTier from '../data/CetusFTier.json' assert { type: 'json' };
import CambionFTier from '../data/CambionFTier.json' assert { type: 'json' };
import NoMatchJob from '../data/NoMatchJob.json' assert { type: 'json' };
import isoVaultBounty from '../data/isoVaultBounty.json' with { type: 'json' };
import plagueStarBounty from '../data/plagueStarBounty.json' with { type: 'json' };
import CetusFTier from '../data/CetusFTier.json' with { type: 'json' };
import CambionFTier from '../data/CambionFTier.json' with { type: 'json' };
import NoMatchJob from '../data/NoMatchJob.json' with { type: 'json' };

chai.should();

Expand Down
4 changes: 2 additions & 2 deletions test/unit/system.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as chai from 'chai';

// eslint-disable-next-line import/no-named-as-default
import WorldState from '../../main.js';
import kuvaMock from '../data/kuvalog.json' assert { type: 'json' };
import sentientMock from '../data/anomaly.json' assert { type: 'json' };
import kuvaMock from '../data/kuvalog.json' with { type: 'json' };
import sentientMock from '../data/anomaly.json' with { type: 'json' };

chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/voidtrader.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from 'chai';

import VoidTrader from '../../lib/models/VoidTrader.js';
import VaultTrader from '../data/VaultTrader.json' assert { type: 'json' };
import VaultTrader from '../data/VaultTrader.json' with { type: 'json' };

chai.should();

Expand Down

0 comments on commit c528e55

Please sign in to comment.