Skip to content

Commit 1ee89f6

Browse files
fix: update snapshot (#1478)
1 parent 7a75847 commit 1ee89f6

File tree

8 files changed

+27
-13
lines changed

8 files changed

+27
-13
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
99

1010
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1111

12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

test/client/metadataApiDeploy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import chai, { assert, expect } from 'chai';
1010
import { AnyJson, ensureString, getString } from '@salesforce/ts-types';
1111
import { envVars, Lifecycle, Messages, PollingClient, StatusResult } from '@salesforce/core';
1212
import { Duration } from '@salesforce/kit';
13-
import deepEqualInAnyOrder = require('deep-equal-in-any-order');
13+
import deepEqualInAnyOrder from 'deep-equal-in-any-order';
1414
import {
1515
ComponentSet,
1616
ComponentStatus,

test/client/metadataApiRetrieve.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { fail } from 'node:assert';
88
import { join, sep } from 'node:path';
99
import { Messages } from '@salesforce/core';
1010
import { assert, expect } from 'chai';
11-
import chai = require('chai');
12-
import deepEqualInAnyOrder = require('deep-equal-in-any-order');
11+
import * as chai from 'chai';
12+
import deepEqualInAnyOrder from 'deep-equal-in-any-order';
1313
import { SinonStub } from 'sinon';
1414
import { ensureString, getString } from '@salesforce/ts-types';
1515
import fs from 'graceful-fs';

test/convert/convertContext/convertContext.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77

88
import { createSandbox } from 'sinon';
9-
import chai = require('chai');
10-
import deepEqualInAnyOrder = require('deep-equal-in-any-order');
9+
import * as chai from 'chai';
10+
import deepEqualInAnyOrder from 'deep-equal-in-any-order';
1111
import { WriterFormat } from '../../../src';
1212
import { ConvertContext } from '../../../src/convert/convertContext/convertContext';
1313
import { decomposed, matchingContentFile, nonDecomposed } from '../../mock';

test/convert/replacements.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import * as path from 'node:path';
88
import { assert, expect, config } from 'chai';
9-
import Sinon = require('sinon');
9+
import * as Sinon from 'sinon';
1010
import { Lifecycle } from '@salesforce/core';
1111
import {
1212
getReplacements,
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
33
<types>
4-
<members>Case</members>
5-
<name>Workflow</name>
4+
<members>Case.ChangePriorityToHigh</members>
5+
<members>Case.ChangePriorityToLow</members>
6+
<members>Case.ChangePriorityToMedium</members>
7+
<name>WorkflowFieldUpdate</name>
68
</types>
79
<version>60.0</version>
810
</Package>

test/snapshot/sampleProjects/preset-workflow/__snapshots__/verify-md-files.expected/package.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@
55
<name>EmailTemplate</name>
66
</types>
77
<types>
8-
<members>Account</members>
9-
<name>Workflow</name>
8+
<members>Account.emailalert1</members>
9+
<name>WorkflowAlert</name>
10+
</types>
11+
<types>
12+
<members>Account.fieldupdate1</members>
13+
<name>WorkflowFieldUpdate</name>
14+
</types>
15+
<types>
16+
<members>Account.outboundmsg1</members>
17+
<name>WorkflowOutboundMessage</name>
18+
</types>
19+
<types>
20+
<members>Account.task_1</members>
21+
<name>WorkflowTask</name>
1022
</types>
1123
<version>60.0</version>
1224
</Package>

test/utils/filePathGenerator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77
import * as path from 'node:path';
88
import { expect } from 'chai';
9-
import deepEqualInAnyOrder = require('deep-equal-in-any-order');
10-
import chai = require('chai');
9+
import deepEqualInAnyOrder from 'deep-equal-in-any-order';
10+
import * as chai from 'chai';
1111
import { filePathsFromMetadataComponent } from '../../src/utils/filePathGenerator';
1212
import { MetadataComponent, MetadataResolver, MetadataType, RegistryAccess, VirtualTreeContainer } from '../../src';
1313

0 commit comments

Comments
 (0)