mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
refactor utils
This commit is contained in:
1 parent
23f9023f8b
commit
e91774fe3b
6 files changed
+93
-80
No files matched your search
@@ -1,8 +1,11 @@
|
||||
import { buildFileCheckCmd } from '../src/commands'
|
||||
import { buildFileCheckCmd, File } from '../src/commands'
|
||||
|
||||
describe('buildFileCheckCmd function', () => {
|
||||
it('builds the file check command correctly', () => {
|
||||
const testcases = [
|
||||
const testcases: {
|
||||
input: File
|
||||
output: string[]
|
||||
}[] = [
|
||||
{
|
||||
input: { path: '/etc/passwd', type: 'file' },
|
||||
output: ['test', '-f', '/etc/passwd'],
|
||||
|
||||
Reference in new issue
Block a user