Skip to content

Commit

Permalink
test: fix NUTs for SDR PR 446 (#200)
Browse files Browse the repository at this point in the history
* test: fix NUTs for SDR PR 446

* chore: bump SDR
  • Loading branch information
WillieRuemmele authored Sep 9, 2021
1 parent 85192e4 commit 76fa862
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@oclif/config": "^1",
"@salesforce/command": "^4.0.4",
"@salesforce/core": "^2.26.1",
"@salesforce/source-deploy-retrieve": "^4.3.2",
"@salesforce/source-deploy-retrieve": "^4.4.0",
"chalk": "^4.1.1",
"cli-ux": "^5.6.3",
"open": "^8.2.1",
Expand Down
27 changes: 10 additions & 17 deletions test/nuts/create.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@ import { execCmd } from '@salesforce/cli-plugins-testkit';
import { fs } from '@salesforce/core';
import { Dictionary } from '@salesforce/ts-types';

const apexManifest =
'<?xml version="1.0" encoding="UTF-8"?>\n' +
'<Package xmlns="http://soap.sforce.com/2006/04/metadata">\n' +
' <types>\n' +
' <members>*</members>\n' +
' <members>GeocodingService</members>\n' +
' <members>GeocodingServiceTest</members>\n' +
' <members>PagedResult</members>\n' +
' <members>PropertyController</members>\n' +
' <members>SampleDataController</members>\n' +
' <members>TestPropertyController</members>\n' +
' <members>TestSampleDataController</members>\n' +
' <name>ApexClass</name>\n' +
' </types>\n' +
' <version>51.0</version>\n' +
'</Package>';

describe('force:source:manifest:create', () => {
let session: TestSession;

Expand All @@ -53,6 +36,16 @@ describe('force:source:manifest:create', () => {
});

it('should produce a manifest (destructiveChanges.xml) for ApexClass in a new directory', () => {
const apexManifest =
'<?xml version="1.0" encoding="UTF-8"?>\n' +
'<Package xmlns="http://soap.sforce.com/2006/04/metadata">\n' +
' <types>\n' +
' <members>*</members>\n' +
' <name>ApexClass</name>\n' +
' </types>\n' +
' <version>51.0</version>\n' +
'</Package>';

const output = join('abc', 'def');
const outputFile = join(output, 'destructiveChanges.xml');
const result = execCmd<Dictionary>(
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -835,10 +835,10 @@
unzipper "0.10.11"
xmldom-sfdx-encoding "^0.1.29"

"@salesforce/source-deploy-retrieve@^4.3.2":
version "4.3.2"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-4.3.2.tgz#b4eb01d235a1d2ab16918e5d25df34886654e294"
integrity sha512-xzLL7/YjMbrAXE3sAr4lbXQDTcFpGLDgnh2k9Bqf+Ns24/xgtm5avg65OlXpeLR1/A+WSAPv3tE9osIiR27yAg==
"@salesforce/source-deploy-retrieve@^4.4.0":
version "4.4.0"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-4.4.0.tgz#15dcd7d372d8ddd7b5bb9a7b249c6c5e189e3b5a"
integrity sha512-uGZypmfPWmqvryp/6t/5Ik3vhxU9NTGI9jxxbMRSsP2AfR/9MdwUoI0b5ZqZpdosH5KvQQ/RCxbgKaMIU7LvZQ==
dependencies:
"@salesforce/core" "2.25.1"
"@salesforce/kit" "^1.5.0"
Expand Down

0 comments on commit 76fa862

Please sign in to comment.