mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
build(deps-dev): bump chai from 4.3.10 to 5.0.0 (#3342)
* build(deps-dev): 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](https://github.com/chaijs/chai/compare/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> * fix: chai to v5 * fix: missing chaiuse * fix: missing chai import fix * test: fix add delete guild --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: H01001000 <heiheiho000@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
"@types/node": "^20.10.6",
|
||||
"@types/sinon": "^17.0.2",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Intents } from '@discordeno/types'
|
||||
import { delay, logger } from '@discordeno/utils'
|
||||
import chai from 'chai'
|
||||
import { use as chaiUse } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import type { EventHandlers } from '../../src/bot.js'
|
||||
import { createBot } from '../../src/bot.js'
|
||||
import { token } from './constants.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
describe('[Bot] Delete any guild owned guilds', () => {
|
||||
it('Start the bot', async () => {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"@types/node": "^20.10.6",
|
||||
"@types/sinon": "^17.0.2",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"@types/sinon": "^17.0.2",
|
||||
"@types/ws": "^8.5.10",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"@types/node": "^20.10.6",
|
||||
"@types/sinon": "^17.0.2",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { Camelize, DiscordEmoji } from '@discordeno/types'
|
||||
import { urlToBase64 } from '@discordeno/utils'
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { after, afterEach, before, beforeEach, describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ChannelTypes } from '@discordeno/types'
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { StickerFormatTypes } from '@discordeno/types'
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
@@ -45,6 +45,7 @@ describe('Get a user from the api', () => {
|
||||
})
|
||||
|
||||
it('With an invalid user id', async () => {
|
||||
// eslint-disable-next-line @typescript-eslint/await-thenable
|
||||
await expect(rest.getUser('123')).eventually.throws
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { LogDepth, logger, LogLevels } from '@discordeno/utils'
|
||||
|
||||
import { type DiscordPartialGuild } from '@discordeno/types'
|
||||
import { createRestManager } from '../../src/manager.js'
|
||||
import { E2E_TEST_GUILD_ID, token } from './constants.js'
|
||||
// For debugging purposes
|
||||
@@ -11,6 +10,11 @@ export const rest = createRestManager({
|
||||
})
|
||||
rest.deleteQueueDelay = 10000
|
||||
|
||||
const guilds = await rest.get<DiscordPartialGuild[]>(rest.routes.guilds.userGuilds())
|
||||
guilds.forEach((guild) => {
|
||||
if (guild.owner) rest.deleteGuild(guild.id)
|
||||
})
|
||||
|
||||
const guild = await rest.createGuild({ name: 'ddenotester' })
|
||||
const channel = await rest.createChannel(guild.id, { name: 'ddenotestchannel' })
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import chai, { expect } from 'chai'
|
||||
import { use as chaiUse, expect } from 'chai'
|
||||
import chaiAsPromised from 'chai-as-promised'
|
||||
import { describe, it } from 'mocha'
|
||||
import { e2ecache, rest } from './utils.js'
|
||||
chai.use(chaiAsPromised)
|
||||
chaiUse(chaiAsPromised)
|
||||
|
||||
before(async () => {
|
||||
if (!e2ecache.guild) {
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"@types/node": "^20.10.6",
|
||||
"@types/sinon": "^17.0.2",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"@types/node": "^20.10.6",
|
||||
"@types/sinon": "^17.0.2",
|
||||
"c8": "^8.0.1",
|
||||
"chai": "^4.3.10",
|
||||
"chai": "^5.0.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
80
yarn.lock
80
yarn.lock
@@ -43,7 +43,7 @@ __metadata:
|
||||
"@types/node": "npm:^20.10.6"
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
eslint: "npm:^8.56.0"
|
||||
eslint-config-discordeno: "npm:*"
|
||||
mocha: "npm:^10.2.0"
|
||||
@@ -68,7 +68,7 @@ __metadata:
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
"@types/ws": "npm:^8.5.10"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
eslint: "npm:^8.56.0"
|
||||
eslint-config-discordeno: "npm:*"
|
||||
mocha: "npm:^10.2.0"
|
||||
@@ -95,7 +95,7 @@ __metadata:
|
||||
"@types/node": "npm:^20.10.6"
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
chai-as-promised: "npm:^7.1.1"
|
||||
dotenv: "npm:^16.3.1"
|
||||
eslint: "npm:^8.56.0"
|
||||
@@ -120,7 +120,7 @@ __metadata:
|
||||
"@types/node": "npm:^20.10.6"
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
eslint: "npm:^8.56.0"
|
||||
eslint-config-discordeno: "npm:*"
|
||||
mocha: "npm:^10.2.0"
|
||||
@@ -142,7 +142,7 @@ __metadata:
|
||||
"@types/node": "npm:^20.10.6"
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
eslint: "npm:^8.56.0"
|
||||
eslint-config-discordeno: "npm:*"
|
||||
mocha: "npm:^10.2.0"
|
||||
@@ -1230,10 +1230,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"assertion-error@npm:^1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "assertion-error@npm:1.1.0"
|
||||
checksum: fd9429d3a3d4fd61782eb3962ae76b6d08aa7383123fca0596020013b3ebd6647891a85b05ce821c47d1471ed1271f00b0545cf6a4326cf2fc91efcc3b0fbecf
|
||||
"assertion-error@npm:^2.0.1":
|
||||
version: 2.0.1
|
||||
resolution: "assertion-error@npm:2.0.1"
|
||||
checksum: a0789dd882211b87116e81e2648ccb7f60340b34f19877dd020b39ebb4714e475eb943e14ba3e22201c221ef6645b7bfe10297e76b6ac95b48a9898c1211ce66
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1522,18 +1522,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"chai@npm:^4.3.10":
|
||||
version: 4.3.10
|
||||
resolution: "chai@npm:4.3.10"
|
||||
"chai@npm:^5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "chai@npm:5.0.0"
|
||||
dependencies:
|
||||
assertion-error: "npm:^1.1.0"
|
||||
check-error: "npm:^1.0.3"
|
||||
deep-eql: "npm:^4.1.3"
|
||||
get-func-name: "npm:^2.0.2"
|
||||
loupe: "npm:^2.3.6"
|
||||
pathval: "npm:^1.1.1"
|
||||
type-detect: "npm:^4.0.8"
|
||||
checksum: 9e545fd60f5efee4f06f7ad62f7b1b142932b08fbb3454db69defd511e7c58771ce51843764212da1e129b2c9d1b029fbf5f98da030fe67a95a0853e8679524f
|
||||
assertion-error: "npm:^2.0.1"
|
||||
check-error: "npm:^2.0.0"
|
||||
deep-eql: "npm:^5.0.1"
|
||||
loupe: "npm:^3.0.0"
|
||||
pathval: "npm:^2.0.0"
|
||||
checksum: c23d1bb3912cc36d12861d7e4010bb992aabf923a8d393bc71e776218c39f5f40778ab9f398ff962dd26857edee07ce732c9ad28a678feb1b76f99384d2e4a90
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1561,12 +1559,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"check-error@npm:^1.0.3":
|
||||
version: 1.0.3
|
||||
resolution: "check-error@npm:1.0.3"
|
||||
dependencies:
|
||||
get-func-name: "npm:^2.0.2"
|
||||
checksum: e2131025cf059b21080f4813e55b3c480419256914601750b0fee3bd9b2b8315b531e551ef12560419b8b6d92a3636511322752b1ce905703239e7cc451b6399
|
||||
"check-error@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "check-error@npm:2.0.0"
|
||||
checksum: 120f252c2e1ad82ef82a616662805345c6c361347bfd6203f8a28c53a158811dd0ea21278f29c8136cc9df12fc7f077d1a07124569d98fb396b3072d08f2f092
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1850,12 +1846,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"deep-eql@npm:^4.1.3":
|
||||
version: 4.1.3
|
||||
resolution: "deep-eql@npm:4.1.3"
|
||||
dependencies:
|
||||
type-detect: "npm:^4.0.0"
|
||||
checksum: 12ce93ae63de187e77b076d3d51bfc28b11f98910a22c18714cce112791195e86a94f97788180994614b14562a86c9763f67c69f785e4586f806b5df39bf9301
|
||||
"deep-eql@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "deep-eql@npm:5.0.1"
|
||||
checksum: f8846820213462cdca23700873810c8bc01263dcc6a1e0f8694964b64f48a6dcb1f323ef7bb8678b15553f4b82420eda19092d4ae2e2709c56af7ea77bd8e6ab
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2012,7 +2006,7 @@ __metadata:
|
||||
"@types/node": "npm:^20.10.6"
|
||||
"@types/sinon": "npm:^17.0.2"
|
||||
c8: "npm:^8.0.1"
|
||||
chai: "npm:^4.3.10"
|
||||
chai: "npm:^5.0.0"
|
||||
commander: "npm:^11.1.0"
|
||||
eslint: "npm:^8.56.0"
|
||||
eslint-config-discordeno: "npm:*"
|
||||
@@ -2909,7 +2903,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"get-func-name@npm:^2.0.1, get-func-name@npm:^2.0.2":
|
||||
"get-func-name@npm:^2.0.1":
|
||||
version: 2.0.2
|
||||
resolution: "get-func-name@npm:2.0.2"
|
||||
checksum: 3f62f4c23647de9d46e6f76d2b3eafe58933a9b3830c60669e4180d6c601ce1b4aa310ba8366143f55e52b139f992087a9f0647274e8745621fa2af7e0acf13b
|
||||
@@ -3966,12 +3960,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"loupe@npm:^2.3.6":
|
||||
version: 2.3.7
|
||||
resolution: "loupe@npm:2.3.7"
|
||||
"loupe@npm:^3.0.0":
|
||||
version: 3.0.2
|
||||
resolution: "loupe@npm:3.0.2"
|
||||
dependencies:
|
||||
get-func-name: "npm:^2.0.1"
|
||||
checksum: 635c8f0914c2ce7ecfe4e239fbaf0ce1d2c00e4246fafcc4ed000bfdb1b8f89d05db1a220054175cca631ebf3894872a26fffba0124477fcb562f78762848fb1
|
||||
checksum: 256467bf10afaca4a5dd79b32e36fcd042bc2a247232e940c62bcc07cb114c2d7a549218eb103598e7cdb8bd32c6601fe230d80e03b8d49782973d4da11c08ed
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4752,10 +4746,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pathval@npm:^1.1.1":
|
||||
version: 1.1.1
|
||||
resolution: "pathval@npm:1.1.1"
|
||||
checksum: b50a4751068aa3a5428f5a0b480deecedc6f537666a3630a0c2ae2d5e7c0f4bf0ee77b48404441ec1220bef0c91625e6030b3d3cf5a32ab0d9764018d1d9dbb6
|
||||
"pathval@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "pathval@npm:2.0.0"
|
||||
checksum: b91575bf9cdf01757afd7b5e521eb8a0b874a49bc972d08e0047cfea0cd3c019f5614521d4bc83d2855e3fcc331db6817dfd533dd8f3d90b16bc76fad2450fc1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5800,7 +5794,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"type-detect@npm:4.0.8, type-detect@npm:^4.0.0, type-detect@npm:^4.0.8":
|
||||
"type-detect@npm:4.0.8, type-detect@npm:^4.0.8":
|
||||
version: 4.0.8
|
||||
resolution: "type-detect@npm:4.0.8"
|
||||
checksum: 5179e3b8ebc51fce1b13efb75fdea4595484433f9683bbc2dca6d99789dba4e602ab7922d2656f2ce8383987467f7770131d4a7f06a26287db0615d2f4c4ce7d
|
||||
|
||||
Reference in New Issue
Block a user