Files
discordeno/packages/old/utils/tests/token.spec.ts
2022-12-26 21:00:54 -06: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'
)
})