mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-06-28 05:33:47 +00:00
test: fix process.argv reset during cli tests (#60)
This commit is contained in:
parent
49a7350406
commit
91782505ce
6 changed files with 15 additions and 18 deletions
|
@ -44,11 +44,11 @@ describe("cli args parser", () => {
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
// create a fresh new instance every time
|
||||
parser = new CLIArgsParser();
|
||||
|
||||
// reset process.env variables
|
||||
resetProcessArgs();
|
||||
|
||||
// create a fresh new instance every time
|
||||
parser = new CLIArgsParser();
|
||||
});
|
||||
|
||||
test("valid execution [default, short]", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue