mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
[css] requests update
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
import 'mocha';
|
||||
import * as assert from 'assert';
|
||||
import { joinPath, normalizePath, resolvePath } from '../requests';
|
||||
|
||||
import { joinPath, normalizePath, resolvePath, extname } from '../requests';
|
||||
|
||||
suite('requests', () => {
|
||||
test('join', async function () {
|
||||
@@ -51,4 +50,13 @@ suite('requests', () => {
|
||||
assertNormalize('..', '');
|
||||
assertNormalize('/..', '/');
|
||||
});
|
||||
|
||||
test('extname', async function () {
|
||||
function assertExtName(input: string, expected: string) {
|
||||
assert.equal(extname(input), expected, input);
|
||||
}
|
||||
assertExtName('foo://a/foo/bar', '');
|
||||
assertExtName('foo://a/foo/bar.foo', '.foo');
|
||||
assertExtName('foo://a/foo/.foo', '');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user