vscode-cmake-tools/test/unit-tests/util.test.ts

14 строки
357 B
TypeScript
Исходник Обычный вид История

2018-06-25 00:39:52 +03:00
import {splitPath} from '@cmt/util';
import {expect} from '@test/util';
suite('Utils test', async () => {
test('Split path into elements', () => {
const elems = splitPath('foo/bar/baz');
expect(elems).to.eql(['foo', 'bar', 'baz']);
});
test('Split empty path', () => {
const elems = splitPath('');
expect(elems).to.eql([]);
});
});