Skip to content

Commit

Permalink
chore: bump chai from 4.3.10 to 5.0.0 (#62)
Browse files Browse the repository at this point in the history
* chore: bump chai from 4.3.10 to 5.0.0

Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.0.0.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](chaijs/chai@v4.3.10...v5.0.0)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* test: align imports

* chore: npm i --legacy-peer-deps

* chore: use @rvagg/chai-as-promised

* ci: revert npm i --legacy-peer-deps

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kiss Róbert <ert78gb@gmail.com>
  • Loading branch information
dependabot[bot] and ert78gb committed Jan 15, 2024
1 parent 34b67b6 commit 268c62d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"lib/"
],
"devDependencies": {
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"@rvagg/chai-as-promised": "^8.0.1",
"chai": "^5.0.0",
"desm": "^1.3.0",
"mocha": "^10.1.0",
"nock": "^13.2.9"
Expand Down
3 changes: 1 addition & 2 deletions tests/buyer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import xml2js from 'xml2js'
const parser = new xml2js.Parser()
import chai from 'chai'
const expect = chai.expect
import { expect } from 'chai'

import {Buyer} from '../index.js'
import {createBuyer} from './resources/setup.js'
Expand Down
7 changes: 3 additions & 4 deletions tests/client.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* eslint-env mocha */

import nock from 'nock'
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
const expect = chai.expect
chai.use(chaiAsPromised)
import {expect, use as chaiUse} from 'chai'
import chaiAsPromised from '@rvagg/chai-as-promised'
chaiUse(chaiAsPromised)

import {Buyer, Client, Invoice, Item, Seller} from '../index.js'
import {
Expand Down
3 changes: 1 addition & 2 deletions tests/invoice.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import xml2js from 'xml2js'
const parser = new xml2js.Parser()
import chai from 'chai'
const expect = chai.expect
import {expect} from 'chai'

import {Buyer, Invoice, Item, Seller} from '../index.js'
import {createSeller, createBuyer, createSoldItemNet, createSoldItemGross, createInvoice} from './resources/setup.js'
Expand Down
3 changes: 1 addition & 2 deletions tests/item.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import xml2js from 'xml2js'
const parser = new xml2js.Parser()
import chai from 'chai'
const expect = chai.expect
import {expect} from 'chai'

import {Buyer, Invoice, Item, Seller} from '../index.js'
import {createSeller, createBuyer, createSoldItemNet, createSoldItemGross, createInvoice} from './resources/setup.js'
Expand Down
3 changes: 1 addition & 2 deletions tests/seller.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import xml2js from 'xml2js'
const parser = new xml2js.Parser()
import chai from 'chai'
const expect = chai.expect
import {expect} from 'chai'

import {Seller} from '../index.js'
import {createSeller} from './resources/setup.js'
Expand Down

0 comments on commit 268c62d

Please sign in to comment.