Skip to content

Commit

Permalink
fix(GH-19): Fix the command
Browse files Browse the repository at this point in the history
Add the missing argument 'list' item to the dotnet command
  • Loading branch information
gavanlamb committed Jun 16, 2024
1 parent cf1859a commit a481084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/services/dotnetService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ describe("listOutdatedPackages", () => {
jest.doMock("@actions/exec", () => ({ getExecOutput: getExecOutputMock }));

const expectedArgs = [
'list',
target,
'package',
'--outdated',
Expand Down Expand Up @@ -245,6 +246,7 @@ describe("listOutdatedPackages", () => {
jest.doMock("@actions/exec", () => ({ getExecOutput: getExecOutputMock }));

const expectedArgs = [
'list',
'package',
'--outdated',
'--format json',
Expand Down Expand Up @@ -302,6 +304,7 @@ describe("listOutdatedPackages", () => {
jest.doMock("@actions/exec", () => ({ getExecOutput: getExecOutputMock }));

const expectedArgs = [
'list',
'package',
'--outdated',
'--format json',
Expand Down
1 change: 1 addition & 0 deletions src/services/dotnetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function getFrameworkArguments(): string[] {
*/
async function listOutdatedPackages(): Promise<Configuration> {
const args: string[] = [
'list',
getTargetArgument(),
'package',
'--outdated',
Expand Down

0 comments on commit a481084

Please sign in to comment.