Skip to content

Commit

Permalink
cleanup(core): update tests for split args to account for tags
Browse files Browse the repository at this point in the history
ISSUES CLOSED: nrwl#2675
  • Loading branch information
yharaskrik committed Jan 4, 2022
1 parent 5f38f4a commit 7e2aa71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/workspace/src/command-line/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('splitArgs', () => {
base: 'sha1',
head: 'sha2',
skipNxCache: false,
tags: [],
});
});

Expand Down Expand Up @@ -53,6 +54,7 @@ describe('splitArgs', () => {
).toEqual({
base: 'main',
skipNxCache: false,
tags: [],
});
});

Expand All @@ -75,6 +77,7 @@ describe('splitArgs', () => {
).toEqual({
base: 'develop',
skipNxCache: false,
tags: [],
});
});

Expand All @@ -94,6 +97,7 @@ describe('splitArgs', () => {
).toEqual({
base: 'main',
skipNxCache: false,
tags: [],
});
});

Expand Down Expand Up @@ -128,6 +132,7 @@ describe('splitArgs', () => {
base: 'sha1',
head: 'sha2',
skipNxCache: false,
tags: [],
});
expect(overrides).toEqual({
notNxArg: true,
Expand Down Expand Up @@ -155,6 +160,7 @@ describe('splitArgs', () => {
base: 'envVarSha1',
head: 'envVarSha2',
skipNxCache: false,
tags: [],
});

expect(
Expand All @@ -171,6 +177,7 @@ describe('splitArgs', () => {
base: 'envVarSha1',
head: 'directlyOnCommandSha1',
skipNxCache: false,
tags: [],
});

expect(
Expand All @@ -187,6 +194,7 @@ describe('splitArgs', () => {
base: 'directlyOnCommandSha2',
head: 'envVarSha2',
skipNxCache: false,
tags: [],
});

// Reset process data
Expand Down

0 comments on commit 7e2aa71

Please sign in to comment.