Skip to content

test: findUserArg has no unit tests #1178

@ishwar170695

Description

@ishwar170695

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions