mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-17 19:37:39 +00:00
chore(common/web): add initial removeExtension test cases
This commit is contained in:
parent
acf156b965
commit
bf7f4c2bc2
1 changed files with 16 additions and 0 deletions
16
common/web/types/test/util/test-file-types.ts
Normal file
16
common/web/types/test/util/test-file-types.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { removeExtension } from '../../src/util/file-types.js';
|
||||
|
||||
describe('Test of File-Types', () => {
|
||||
describe('Test of removeExtension()', () => {
|
||||
it('can remove file extension', () => {
|
||||
const filename = removeExtension("file.kmn");
|
||||
assert.deepEqual(filename, "file");
|
||||
});
|
||||
it('can handle no file extension', () => {
|
||||
const filename = removeExtension("file");
|
||||
assert.deepEqual(filename, "file");
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue