diff options
Diffstat (limited to 'tests/arguments/abbreviatedNumber.test.ts')
-rw-r--r-- | tests/arguments/abbreviatedNumber.test.ts | 10 |
1 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(); +}); |