diff options
Diffstat (limited to 'tests')
116 files changed, 10 insertions, 0 deletions
diff --git a/tests/arguments/abbreviatedNumber.test.ts b/tests/arguments/abbreviatedNumber.test.ts new file mode 100644 index 0000000..2cf326d --- /dev/null +++ b/tests/arguments/abbreviatedNumber.test.ts @@ -0,0 +1,10 @@ +import { expect, test } from 'vitest'; +import { abbreviatedNumber } from '../../src/arguments/abbreviatedNumber.js'; +import { CommandMessage } from '../../src/lib/index.js'; + +const message = {} as CommandMessage; + +test('empty string returns null', () => { + const res = abbreviatedNumber(message, ''); + expect(res).toBeNull(); +}); diff --git a/tests/arguments/contentWithDuration.test.ts b/tests/arguments/contentWithDuration.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/contentWithDuration.test.ts diff --git a/tests/arguments/discordEmoji.test.ts b/tests/arguments/discordEmoji.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/discordEmoji.test.ts diff --git a/tests/arguments/duration.test.ts b/tests/arguments/duration.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/duration.test.ts diff --git a/tests/arguments/durationSeconds.test.ts b/tests/arguments/durationSeconds.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/durationSeconds.test.ts diff --git a/tests/arguments/globalUser.test.ts b/tests/arguments/globalUser.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/globalUser.test.ts diff --git a/tests/arguments/messageLink.test.ts b/tests/arguments/messageLink.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/messageLink.test.ts diff --git a/tests/arguments/permission.test.ts b/tests/arguments/permission.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/permission.test.ts diff --git a/tests/arguments/roleWithDuration.test.ts b/tests/arguments/roleWithDuration.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/roleWithDuration.test.ts diff --git a/tests/arguments/snowflake.test.ts b/tests/arguments/snowflake.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/snowflake.test.ts diff --git a/tests/arguments/tinyColor.test.ts b/tests/arguments/tinyColor.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/arguments/tinyColor.test.ts diff --git a/tests/commands/admin/channelPermissions.test.ts b/tests/commands/admin/channelPermissions.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/admin/channelPermissions.test.ts diff --git a/tests/commands/admin/roleAll.test.ts b/tests/commands/admin/roleAll.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/admin/roleAll.test.ts diff --git a/tests/commands/config/blacklist.test.ts b/tests/commands/config/blacklist.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/config/blacklist.test.ts diff --git a/tests/commands/config/config.test.ts b/tests/commands/config/config.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/config/config.test.ts diff --git a/tests/commands/config/disable.test.ts b/tests/commands/config/disable.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/config/disable.test.ts diff --git a/tests/commands/config/features.test.ts b/tests/commands/config/features.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/config/features.test.ts diff --git a/tests/commands/config/log.test.ts b/tests/commands/config/log.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/config/log.test.ts diff --git a/tests/commands/dev/dm.test.ts b/tests/commands/dev/dm.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/dev/dm.test.ts diff --git a/tests/commands/dev/eval.test.ts b/tests/commands/dev/eval.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/dev/eval.test.ts diff --git a/tests/commands/dev/javascript.test.ts b/tests/commands/dev/javascript.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/dev/javascript.test.ts diff --git a/tests/commands/dev/reload.test.ts b/tests/commands/dev/reload.test.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/commands/dev/reload.test.ts diff --git a/tests/commands/dev/say.test.ts b/tests/commands/ |
