Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed Feb 8, 2024
1 parent 4d764b7 commit 3587ffa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/update-axe-core-v1/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27249,8 +27249,8 @@ async function run(core, getPackageManager, cwd) {
}
const { stderr: installError, exitCode: installExitCode } = await (0, exec_1.getExecOutput)(packageManager, [
packageManager === 'npm' ? 'i' : 'add',
dependencyType,
`axe-core@${pinStrategy}${latestAxeCoreVersion}`
`axe-core@${pinStrategy}${latestAxeCoreVersion}`,
dependencyType
], {
cwd: dirPath
});
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/update-axe-core-v1/src/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe('run', () => {
await run(core as unknown as Core, getPackageManagerStub, dirPath)

assert.isTrue(
getExecOutputStub.calledWith('npm', ['i', '', sinon.match.any], {
getExecOutputStub.calledWith('npm', ['i', sinon.match.any, ''], {
cwd: dirPath
})
)
Expand All @@ -203,7 +203,7 @@ describe('run', () => {
await run(core as unknown as Core, getPackageManagerStub, dirPath)

assert.isTrue(
getExecOutputStub.calledWith('yarn', ['add', '', sinon.match.any], {
getExecOutputStub.calledWith('yarn', ['add', sinon.match.any, ''], {
cwd: dirPath
})
)
Expand All @@ -217,7 +217,7 @@ describe('run', () => {
await run(core as unknown as Core, getPackageManagerStub, dirPath)

assert.isTrue(
getExecOutputStub.calledWith('yarn', ['add', '', sinon.match.any], {
getExecOutputStub.calledWith('yarn', ['add', sinon.match.any, ''], {
cwd: dirPath
})
)
Expand Down Expand Up @@ -349,7 +349,7 @@ describe('run', () => {
await run(core as unknown as Core, getPackageManagerStub, dirPath)

assert.isTrue(
getExecOutputStub.calledWith('npm', ['i', '', `axe-core@${pin}`], {
getExecOutputStub.calledWith('npm', ['i', `axe-core@${pin}`, ''], {
cwd: dirPath
})
)
Expand Down

0 comments on commit 3587ffa

Please sign in to comment.