summaryrefslogtreecommitdiffstats
path: root/web_src/js/utils.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/utils.test.js')
-rw-r--r--web_src/js/utils.test.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/web_src/js/utils.test.js b/web_src/js/utils.test.js
index 46fbb28de4..2f9e5fb47d 100644
--- a/web_src/js/utils.test.js
+++ b/web_src/js/utils.test.js
@@ -1,7 +1,7 @@
import {expect, test} from 'vitest';
import {
basename, extname, isObject, stripTags, joinPaths, parseIssueHref,
- prettyNumber, parseUrl, translateMonth, translateDay, blobToDataURI,
+ parseUrl, translateMonth, translateDay, blobToDataURI,
toAbsoluteUrl,
} from './utils.js';
@@ -84,17 +84,6 @@ test('parseIssueHref', () => {
expect(parseIssueHref('')).toEqual({owner: undefined, repo: undefined, type: undefined, index: undefined});
});
-test('prettyNumber', () => {
- expect(prettyNumber()).toEqual('');
- expect(prettyNumber(null)).toEqual('');
- expect(prettyNumber(undefined)).toEqual('');
- expect(prettyNumber('1200')).toEqual('');
- expect(prettyNumber(12345678, 'en-US')).toEqual('12,345,678');
- expect(prettyNumber(12345678, 'de-DE')).toEqual('12.345.678');
- expect(prettyNumber(12345678, 'be-BE')).toEqual('12 345 678');
- expect(prettyNumber(12345678, 'hi-IN')).toEqual('1,23,45,678');
-});
-
test('parseUrl', () => {
expect(parseUrl('').pathname).toEqual('/');
expect(parseUrl('/path').pathname).toEqual('/path');