Files
discordeno/packages/utils/tests/token.spec.ts
2022-12-20 09:35:40 +08:00

16 lines
453 B
TypeScript

import { expect } from 'chai'
import { it } from 'mocha'
import { removeTokenPrefix } from '../src/token.js'
it('[token] Remove token prefix when Bot is prefixed.', () => {
expect(removeTokenPrefix('Bot discordeno is best lib')).to.be.equal(
'discordeno is best lib'
)
})
it('[token] Remove token prefix when Bot is NOT prefixed.', () => {
expect(removeTokenPrefix('discordeno is best lib')).to.be.equal(
'discordeno is best lib'
)
})