Skip to content

Commit f6d1aee

Browse files
committed
fix: tests
1 parent bf63989 commit f6d1aee

30 files changed

Lines changed: 47 additions & 35 deletions

command-snapshot.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,57 @@
44
"command": "devops:project:list",
55
"flagAliases": [],
66
"flagChars": ["o"],
7-
"flags": ["api-version", "json", "target-org"],
7+
"flags": ["api-version", "flags-dir", "json", "target-org"],
88
"plugin": "@salesforce/plugin-devops-center"
99
},
1010
{
1111
"alias": [],
1212
"command": "devops:work-item:create",
1313
"flagAliases": [],
1414
"flagChars": ["d", "o", "p", "s"],
15-
"flags": ["api-version", "description", "json", "project-id", "subject", "target-org"],
15+
"flags": ["api-version", "description", "flags-dir", "json", "project-id", "subject", "target-org"],
1616
"plugin": "@salesforce/plugin-devops-center"
1717
},
1818
{
1919
"alias": [],
2020
"command": "devops:work-item:list",
2121
"flagAliases": [],
2222
"flagChars": ["o", "p"],
23-
"flags": ["api-version", "json", "project-id", "target-org"],
23+
"flags": ["api-version", "flags-dir", "json", "project-id", "target-org"],
2424
"plugin": "@salesforce/plugin-devops-center"
2525
},
2626
{
2727
"alias": [],
2828
"command": "project:deploy:pipeline:quick",
2929
"flagAliases": [],
3030
"flagChars": ["c", "i", "r", "w"],
31-
"flags": ["async", "concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
31+
"flags": [
32+
"async",
33+
"concise",
34+
"devops-center-username",
35+
"flags-dir",
36+
"job-id",
37+
"json",
38+
"use-most-recent",
39+
"verbose",
40+
"wait"
41+
],
3242
"plugin": "@salesforce/plugin-devops-center"
3343
},
3444
{
3545
"alias": [],
3646
"command": "project:deploy:pipeline:report",
3747
"flagAliases": [],
3848
"flagChars": ["c", "i", "r"],
39-
"flags": ["devops-center-username", "job-id", "json", "use-most-recent"],
49+
"flags": ["devops-center-username", "flags-dir", "job-id", "json", "use-most-recent"],
4050
"plugin": "@salesforce/plugin-devops-center"
4151
},
4252
{
4353
"alias": [],
4454
"command": "project:deploy:pipeline:resume",
4555
"flagAliases": [],
4656
"flagChars": ["c", "i", "r", "w"],
47-
"flags": ["concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
57+
"flags": ["concise", "devops-center-username", "flags-dir", "job-id", "json", "use-most-recent", "verbose", "wait"],
4858
"plugin": "@salesforce/plugin-devops-center"
4959
},
5060
{
@@ -60,6 +70,7 @@
6070
"deploy-all",
6171
"devops-center-project-name",
6272
"devops-center-username",
73+
"flags-dir",
6374
"json",
6475
"test-level",
6576
"tests",
@@ -81,6 +92,7 @@
8192
"deploy-all",
8293
"devops-center-project-name",
8394
"devops-center-username",
95+
"flags-dir",
8496
"json",
8597
"test-level",
8698
"tests",

test/commands/devops/project/list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { expect, test } from '@oclif/test';
1818
import { TestContext } from '@salesforce/core/testSetup';
19-
import * as sinon from 'sinon';
19+
import sinon from 'sinon';
2020
import { Org } from '@salesforce/core';
2121

2222
describe('devops project list', () => {

test/commands/devops/work-item/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import esmock from 'esmock';
1818
import { expect, test } from '@oclif/test';
19-
import * as sinon from 'sinon';
19+
import sinon from 'sinon';
2020
import { Org } from '@salesforce/core';
2121

2222
describe('devops work-item create', () => {

test/commands/devops/work-item/list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import esmock from 'esmock';
1818
import { expect, test } from '@oclif/test';
19-
import * as sinon from 'sinon';
19+
import sinon from 'sinon';
2020
import { Org } from '@salesforce/core';
2121
import { WorkItem } from '../../../../src/utils/types.js';
2222

test/commands/project/deploy/pipeline/quick.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import esmock from 'esmock';
1919
import { expect, test } from '@oclif/test';
2020
import { ConfigAggregator, Org, StreamingClient } from '@salesforce/core';
2121
import { HttpRequest } from '@jsforce/jsforce-node';
22-
import * as sinon from 'sinon';
22+
import sinon from 'sinon';
2323
import { QueryResult, Record } from '@jsforce/jsforce-node';
2424
import { TestContext } from '@salesforce/core/testSetup';
2525
import { ConfigVars } from '../../../../../src/configMeta.js';

test/commands/project/deploy/pipeline/report.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import esmock from 'esmock';
1919
import { expect, test } from '@oclif/test';
2020
import { TestContext } from '@salesforce/core/testSetup';
21-
import * as sinon from 'sinon';
21+
import sinon from 'sinon';
2222
import { ConfigAggregator, Org } from '@salesforce/core';
2323
import { ConfigVars } from '../../../../../src/configMeta.js';
2424
import { AsyncOperationStatus, DeploymentResult } from '../../../../../src/common/types.js';

test/commands/project/deploy/pipeline/resume.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import esmock from 'esmock';
1919
import { expect, test } from '@oclif/test';
2020
import { TestContext } from '@salesforce/core/testSetup';
21-
import * as sinon from 'sinon';
21+
import sinon from 'sinon';
2222
import { ConfigAggregator, Org } from '@salesforce/core';
2323
import { ConfigVars } from '../../../../../src/configMeta.js';
2424
import { AsyncOperationResult, AsyncOperationStatus } from '../../../../../src/common/types.js';

test/commands/project/deploy/pipeline/start.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import esmock from 'esmock';
1919
import { expect, test } from '@oclif/test';
2020
import { TestContext } from '@salesforce/core/testSetup';
21-
import * as sinon from 'sinon';
21+
import sinon from 'sinon';
2222
import { ConfigAggregator, Org, StreamingClient } from '@salesforce/core';
2323
import { HttpRequest } from '@jsforce/jsforce-node';
2424
import { ConfigVars } from '../../../../../src/configMeta.js';

test/commands/project/deploy/pipeline/validate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import esmock from 'esmock';
1919
import { expect, test } from '@oclif/test';
2020
import { TestContext } from '@salesforce/core/testSetup';
21-
import * as sinon from 'sinon';
21+
import sinon from 'sinon';
2222
import { ConfigAggregator, Org, StreamingClient } from '@salesforce/core';
2323
import { HttpRequest } from '@jsforce/jsforce-node';
2424
import { ConfigVars } from '../../../../../src/configMeta.js';

test/common/flags.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { expect } from '@oclif/test';
1818
import { assert } from 'chai';
19-
import * as sinon from 'sinon';
19+
import sinon from 'sinon';
2020
import { Parser } from '@oclif/core';
2121
import { ConfigAggregator, Org } from '@salesforce/core';
2222
import { Duration } from '@salesforce/kit';

0 commit comments

Comments
 (0)