summaryrefslogtreecommitdiff
path: root/source/helpers/loose-parse-int.test.ts
blob: a6662566a893cf7652d167f4a965667d1fd8c819 (plain) (blame)
1
2
3
4
5
6
7
8
9
import {test, assert} from 'vitest';

import looseParseInt from './loose-parse-int.js';

test('looseParseInt', () => {
	assert.equal(looseParseInt('1,234'), 1234);
	assert.equal(looseParseInt('Bugs 1,234'), 1234);
	assert.equal(looseParseInt('5000+ issues'), 5000);
});