devcontainers / devcontainers/cli
test: findUserArg has no unit tests
Aperta
- Lingua principale
- TypeScript
- Stelle
- 3k
- Fork
- 457
- Merge medio
- 13h 17m
- PR unite (30g)
- 6
Descrizione
`findUserArg` in `singleContainer.ts` is exported but has no test coverage.
No test file currently imports from `singleContainer`.
Proposing to add `src/test/singleContainer.test.ts` covering these cases:
- ['-u', 'myuser'] -> 'myuser'
- ['--user', 'myuser'] -> 'myuser'
- ['--user=myuser'] -> 'myuser'
- ['--user', 'a', '-u', 'b'] -> 'b' (last wins)
- [] -> undefined
Would this be helpful?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.