aboutsummaryrefslogtreecommitdiff
path: root/tests/arguments/abbreviatedNumber.test.ts
blob: cd34bc51103765085945389f0f59923a058bbded (plain)
1
2
3
4
5
6
7
8
9
10
import { CommandMessage } from '#lib';
import { expect, test } from 'vitest';
import { abbreviatedNumber } from '../../lib/arguments/abbreviatedNumber.js';

const message = {} as CommandMessage;

test('empty string returns null', () => {
	const res = abbreviatedNumber(message, '');
	expect(res).toBeNull();
});