diff options
author | destruc7i0n <destruc7i0n@users.noreply.github.com> | 2022-01-27 19:15:26 -0500 |
---|---|---|
committer | destruc7i0n <destruc7i0n@users.noreply.github.com> | 2022-01-27 19:15:26 -0500 |
commit | 8a4a5bf73cad90e72368f0cad5740b56301b2228 (patch) | |
tree | f92259b7dd8a344849129cdb3afd7d3fc507012a /tests/DiscordWebhooks.test.ts | |
parent | added tests (diff) | |
download | shulker-8a4a5bf73cad90e72368f0cad5740b56301b2228.tar.gz shulker-8a4a5bf73cad90e72368f0cad5740b56301b2228.zip |
encode unicode characters in names too
closes #81
Diffstat (limited to 'tests/DiscordWebhooks.test.ts')
-rw-r--r-- | tests/DiscordWebhooks.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/DiscordWebhooks.test.ts b/tests/DiscordWebhooks.test.ts index 0965c3c..985b118 100644 --- a/tests/DiscordWebhooks.test.ts +++ b/tests/DiscordWebhooks.test.ts @@ -3,7 +3,7 @@ import DiscordWebhooks from '../src/DiscordWebhooks' import { defaultConfig } from './constants' describe('DiscordWebhooks', () => { - test('parses discord webhooks', () => { + it('parses discord webhooks', () => { const dw = new DiscordWebhooks(defaultConfig) expect(dw['parseDiscordWebhook']('https://discordapp.com/api/webhooks/id/token')).toStrictEqual({ id: 'id', token: 'token' }) @@ -14,7 +14,7 @@ describe('DiscordWebhooks', () => { expect(dw['parseDiscordWebhook']('https://diskrod.com/api/webhooks/id/token')).toStrictEqual({ id: null, token: null }) }) - test('gets uuid from username and caches', async () => { + it('gets uuid from username and caches', async () => { const dw = new DiscordWebhooks(defaultConfig) expect(await dw['getUUIDFromUsername']('destruc7i0n')).toBe('2d8cf844fa3441c38d4e597b32697909') @@ -26,7 +26,7 @@ describe('DiscordWebhooks', () => { }) describe('webhook generation', () => { - test('creates for valid players', async () => { + it('creates for valid players', async () => { const dw = new DiscordWebhooks(defaultConfig) expect(await dw['makeDiscordWebhook']('destruc7i0n', 'hey')).toStrictEqual( @@ -46,7 +46,7 @@ describe('DiscordWebhooks', () => { ) }) - test('creates with default player head for invalid players', async () => { + it('creates with default player head for invalid players', async () => { const dw = new DiscordWebhooks(defaultConfig) // inb4 someone makes `fakedestruc7i0n` @@ -71,7 +71,7 @@ describe('DiscordWebhooks', () => { ) }) - test('creates for server message', async () => { + it('creates for server message', async () => { const dw = new DiscordWebhooks(defaultConfig) expect(await dw['makeDiscordWebhook']('Shulker - Server', 'hey')).toStrictEqual( |