diff --git a/__tests__/cli/list/profile-args/ProfileArgs.handler.test.ts b/__tests__/cli/list/profile-args/ProfileArgs.handler.test.ts index 969c733..778043d 100644 --- a/__tests__/cli/list/profile-args/ProfileArgs.handler.test.ts +++ b/__tests__/cli/list/profile-args/ProfileArgs.handler.test.ts @@ -80,47 +80,4 @@ describe("profile-args Handler", () => { await handler.process(params); expect(actualOutput).toMatchObject(expectedOutput); }); - - it("should list profile args for old school profiles", async () => { - Object.defineProperty(ImperativeConfig, "instance", { - get: () => ({}) - }); - const profileArgs = { - host: "fakeHost", - port: 443, - user: "fakeUser", - password: "fakePass", - tshirtSize: "L" - }; - - const handler = new ProfileArgsHandler.default(); - const params = Object.assign({}, ...[DEFAULT_PARAMETERS]); - params.arguments = {...params.arguments, ...profileArgs}; - params.profiles = { - getMeta: (name: string) => { - return { - name: "fake" + name.charAt(0).toUpperCase() + name.slice(1) - }; - } - }; - - const expectedOutput = { - arguments: { - ...profileArgs, - rejectUnauthorized: true - }, - environment: { - usingTeamConfig: false, - sampleProfileName: "fakeSample", - baseProfileName: "fakeBase" - } - }; - let actualOutput = null; - params.response.data.setObj.mockImplementation((obj: any) => { - actualOutput = obj; - }); - - await handler.process(params); - expect(actualOutput).toMatchObject(expectedOutput); - }); }); diff --git a/__tests__/cli/list/profile-args/__snapshots__/ProfileArgs.handler.test.ts.snap b/__tests__/cli/list/profile-args/__snapshots__/ProfileArgs.handler.test.ts.snap index 1d076e3..517076c 100644 --- a/__tests__/cli/list/profile-args/__snapshots__/ProfileArgs.handler.test.ts.snap +++ b/__tests__/cli/list/profile-args/__snapshots__/ProfileArgs.handler.test.ts.snap @@ -1,26 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`profile-args Handler should list profile args for old school profiles 1`] = ` -Object { - "format": "object", - "output": Object { - "arguments": Object { - "host": "fakeHost", - "password": "fakePass", - "port": 443, - "rejectUnauthorized": true, - "tshirtSize": "L", - "user": "fakeUser", - }, - "environment": Object { - "baseProfileName": "fakeBase", - "sampleProfileName": "fakeSample", - "usingTeamConfig": false, - }, - }, -} -`; - exports[`profile-args Handler should list profile args for team config 1`] = ` Object { "format": "object",