mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
test(remove-extension) test -> client
This commit is contained in:
parent
74d56f795d
commit
02f8d75273
1 changed files with 1 additions and 3 deletions
29
client/modules/operation/remove-extension.spec.js
Normal file
29
client/modules/operation/remove-extension.spec.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
'use strict';
|
||||
|
||||
const test = require('supertape');
|
||||
const removeExtension = require(`./remove-extension`);
|
||||
|
||||
test('cloudcmd: client: modules: operation: removeExtension: .tar.gz', (t) => {
|
||||
const name = 'hello';
|
||||
const fullName = `${name}.tar.gz`;
|
||||
|
||||
t.equal(removeExtension(fullName), name, 'should remove .tar.gz');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: client: modules: operation: removeExtension: .tar.bz2', (t) => {
|
||||
const name = 'hello';
|
||||
const fullName = `${name}.tar.bz2`;
|
||||
|
||||
t.equal(removeExtension(fullName), name, 'should remove .tar.bz2');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: client: modules: operation: removeExtension: .bz2', (t) => {
|
||||
const name = 'hello';
|
||||
const fullName = `${name}.bz2`;
|
||||
|
||||
t.equal(removeExtension(fullName), name, 'should remove .bz2');
|
||||
t.end();
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue