Skip to content

Commit

Permalink
feat: update worldstate parser to 4.x (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Jun 27, 2024
1 parent 3ef4b84 commit 9fe2649
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version-file: .nvmrc
- run: |
npm ci --omit=optional
npm install --no-save warframe-worldstate-parser@^3.x warframe-worldstate-data@^2.x
npm install --no-save warframe-worldstate-parser@^4.x warframe-worldstate-data@^2.x
- uses: actions/cache/save@v4
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Verify
run: |
npm ci --omit=optional
npm install --no-save warframe-worldstate-parser@^3.x warframe-worldstate-data@^2.x
npm install --no-save warframe-worldstate-parser@^4.x warframe-worldstate-data@^2.x
npm run lint
npx commitlint --from=HEAD~1
npm test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules

.jshintignore
.jshintrc
.eslintcache
175 changes: 39 additions & 136 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [0]
"body-max-line-length": [
0
]
}
},
"lint-staged": {
Expand Down Expand Up @@ -131,7 +133,7 @@
},
"peerDependencies": {
"warframe-worldstate-data": "^2.x",
"warframe-worldstate-parser": "^3.x"
"warframe-worldstate-parser": "^4.x"
},
"optionalDependencies": {
"colors": "^1.4.0",
Expand Down
4 changes: 4 additions & 0 deletions test/specs/access.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import chai from 'chai';
import WSEmitter from '../../index.js';

chai.should();
const { expect } = chai;

const ws = await WSEmitter.make();

Expand All @@ -12,6 +13,7 @@ describe('access', function () {
});
it('should return data when requested', async () => {
const data = ws.getWorldstate();

data.should.be
.an('object')
.that.has.all.keys(
Expand Down Expand Up @@ -48,5 +50,7 @@ describe('access', function () {
'weeklyChallenges',
'zarimanCycle'
);

data.syndicateMissions.some((mission) => mission.jobs.some((job) => expect(job).to.not.be.empty)).should.be.true;
});
});
Loading

0 comments on commit 9fe2649

Please sign in to comment.