Files
discordeno/packages/utils/tests/token.spec.ts
2022-12-29 18:50:05 -08:00

19 lines
523 B
TypeScript

import { expect } from 'chai'
import { it } from 'mocha'
// import { removeTokenPrefix } from '../src/token.js'
let removeTokenPrefix
describe(' ', () => {
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'
)
})
})