You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Chore: Fixed build
This commit is contained in:
19
packages/utils/commandToString.test.ts
Normal file
19
packages/utils/commandToString.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import commandToString from './commandToString';
|
||||
|
||||
describe('commandToString', () => {
|
||||
|
||||
it('should convert a command array to a string', () => {
|
||||
const testCases: [string, string[], string][] = [
|
||||
['ls', ['-la'], 'ls -la'],
|
||||
['docker', ['--profile', 'with spaces'], 'docker --profile "with spaces"'],
|
||||
['', [], ''],
|
||||
['', [''], ''],
|
||||
];
|
||||
|
||||
for (const [commandName, args, expected] of testCases) {
|
||||
const actual = commandToString(commandName, args);
|
||||
expect(actual).toBe(expected);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user