Skip to content

Commit

Permalink
test: check for nonZero instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Dec 11, 2023
1 parent ac9be81 commit bf4f1f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@salesforce/dev-scripts": "^8.1.0",
"@salesforce/plugin-command-reference": "^3.0.51",
"@salesforce/plugin-source": "^2.11.4",
"@salesforce/source-testkit": "^2.1.69",
"@salesforce/source-testkit": "^2.1.73",
"@salesforce/ts-sinon": "^1.4.19",
"@salesforce/ts-types": "^2.0.9",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/seeds/deploy.metadata.manifest.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ context('deploy metadata --manifest NUTs [name: %REPO_NAME%]', () => {
}

it('should throw an error if the package.xml is not valid', async () => {
const deploy = await testkit.deploy({ args: '--manifest DOES_NOT_EXIST.xml', exitCode: 1 });
const deploy = await testkit.deploy({ args: '--manifest DOES_NOT_EXIST.xml', exitCode: 'nonZero' });
assert(deploy);
testkit.expect.errorToHaveName(deploy, 'Error');
testkit.expect.errorToHaveMessage(deploy, 'No file found at DOES_NOT_EXIST.xml');
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@
istanbul-reports "^3.1.6"
jsforce "^2.0.0-beta.29"

"@salesforce/cli-plugins-testkit@^5.0.5", "@salesforce/cli-plugins-testkit@^5.1.0":
"@salesforce/cli-plugins-testkit@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.1.0.tgz#8d9caa22ea9e99879629206892afb26bcd540cef"
integrity sha512-P5tYlNqE87lX9Yp2aAsK75PICoAbmrSK3LEqiIVbtn75PN3OKiD1JEEX2ZDu+HWtO4/nxPtO4JFvX5j00EZGBA==
Expand Down Expand Up @@ -1174,15 +1174,15 @@
minimatch "^5.1.6"
proxy-agent "^6.3.1"

"@salesforce/source-testkit@^2.1.69":
version "2.1.69"
resolved "https://registry.yarnpkg.com/@salesforce/source-testkit/-/source-testkit-2.1.69.tgz#711aac277862ac8dd9eefc45714c1c56d522cc6b"
integrity sha512-qOa2onuf2AThln+Ra6Ia0v5UqLEpwU55Ar+ZGwzdY5N0oKVM6SY5XeRzj+ObK9iOr4AvRESKIyka8hZSBetPOg==
"@salesforce/source-testkit@^2.1.73":
version "2.1.73"
resolved "https://registry.yarnpkg.com/@salesforce/source-testkit/-/source-testkit-2.1.73.tgz#e43164d6600c78bbb170ed9e9ac520ba0dca0351"
integrity sha512-UXwOgUF+pcaR7tf4qAKOnuKO5HrIuRlRsvMmRyYc8nriMGKYxAcra/SUfwUporWAQn00dl546BVXG6AK/vcYQQ==
dependencies:
"@salesforce/cli-plugins-testkit" "^5.0.5"
"@salesforce/core" "^6.2.2"
"@salesforce/cli-plugins-testkit" "^5.1.0"
"@salesforce/core" "^6.4.0"
"@salesforce/kit" "^3.0.15"
"@salesforce/source-deploy-retrieve" "^10.0.3"
"@salesforce/source-deploy-retrieve" "^10.2.0"
"@salesforce/ts-types" "^2.0.9"
archiver "^5.3.2"
chai-each "^0.0.1"
Expand Down

0 comments on commit bf4f1f4

Please sign in to comment.