mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
* test(utils): fix cant import collection * test(rest): await expect * fix(utils): deno compactability * test(utils): typing * fix(utils): add return type
14 lines
491 B
TypeScript
14 lines
491 B
TypeScript
import { expect } from 'chai'
|
|
import { describe, it } from 'mocha'
|
|
import { removeTokenPrefix } from '../src/token.js'
|
|
|
|
describe('token.ts', () => {
|
|
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')
|
|
})
|
|
})
|