mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 18:00:08 +00:00
* update biome to v2 * Run biome check --write * Update biome.jsonc Co-authored-by: Link <lts20050703@gmail.com> * Fix config error * Bump biome version * Update website/yarn.lock * Update biome to 2.1.3 --------- Co-authored-by: Link <lts20050703@gmail.com>
23 lines
499 B
TypeScript
23 lines
499 B
TypeScript
import { delay } from '@discordeno/utils'
|
|
import { use as chaiUse } from 'chai'
|
|
import chaiAsPromised from 'chai-as-promised'
|
|
import { describe, it } from 'mocha'
|
|
import { createBot } from '../../src/bot.js'
|
|
import { token } from './constants.js'
|
|
|
|
chaiUse(chaiAsPromised)
|
|
|
|
describe('[Bot] Can start and stop the bot', () => {
|
|
it('Start and stop the bot', async () => {
|
|
const bot = createBot({
|
|
token,
|
|
})
|
|
|
|
await bot.start()
|
|
|
|
await delay(5000)
|
|
|
|
await bot.shutdown()
|
|
})
|
|
})
|