Skip to content

Commit bf5b211

Browse files
Uzlopaktargos
authored andcommitted
util: remove internal mime fns from benchmarks
PR-URL: #50201 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
1 parent e49ebf8 commit bf5b211

File tree

4 files changed

+0
-116
lines changed

4 files changed

+0
-116
lines changed

benchmark/mime/parse-type-and-subtype.js

-53
This file was deleted.

benchmark/mime/to-ascii-lower.js

-54
This file was deleted.

lib/internal/mime.js

-2
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ ObjectDefineProperty(MIMEType.prototype, 'toJSON', {
384384
});
385385

386386
module.exports = {
387-
toASCIILower,
388-
parseTypeAndSubtype,
389387
MIMEParams,
390388
MIMEType,
391389
};

test/parallel/test-mime-api.js

-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
require('../common');
55
const assert = require('assert');
66
const { MIMEType, MIMEParams } = require('util');
7-
const { toASCIILower } = require('internal/mime');
8-
97

108
const WHITESPACES = '\t\n\f\r ';
119
const NOT_HTTP_TOKEN_CODE_POINT = ',';
@@ -160,8 +158,3 @@ assert.throws(() => params.set(`x${NOT_HTTP_TOKEN_CODE_POINT}`, 'x'), /parameter
160158
assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT};`), /parameter value/i);
161159
assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT}x`), /parameter value/i);
162160
assert.throws(() => params.set('x', `x${NOT_HTTP_QUOTED_STRING_CODE_POINT}`), /parameter value/i);
163-
164-
assert.strictEqual(toASCIILower('someThing'), 'something');
165-
assert.strictEqual(toASCIILower('SomeThing'), 'something');
166-
assert.strictEqual(toASCIILower('SomeThing3'), 'something3');
167-
assert.strictEqual(toASCIILower('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 'abcdefghijklmnopqrstuvwxyz');

0 commit comments

Comments
 (0)