This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65f98d6
commit db4c4cb
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ import { SfError } from '@salesforce/core'; | |
import { expect } from 'chai'; | ||
import stripAnsi = require('strip-ansi'); | ||
import { stdout } from '@oclif/core'; | ||
import EnvApi from '../../../src/commands/env/api'; | ||
import { OrgApi }from '../../../src/commands/org/api'; | ||
|
||
describe('env api', () => { | ||
describe('org api', () => { | ||
const $$ = new TestContext(); | ||
const testOrg = new MockTestOrgData('1234', { | ||
username: '[email protected]', | ||
|
@@ -35,7 +35,7 @@ describe('env api', () => { | |
.get('/services/data/v56.0/limits') | ||
.reply(200, orgLimitsResponse); | ||
|
||
await EnvApi.run([ | ||
await OrgApi.run([ | ||
'services/data/v56.0/limits', | ||
'--target-org', | ||
'[email protected]', | ||
|
@@ -63,7 +63,7 @@ describe('env api', () => { | |
.get('/services/data') | ||
.reply(200, xmlRes); | ||
|
||
await EnvApi.run([ | ||
await OrgApi.run([ | ||
'services/data', | ||
'--header', | ||
'Accept: application/xml', | ||
|
@@ -79,7 +79,7 @@ describe('env api', () => { | |
|
||
it('should validate HTTP headers are in a "key:value" format', async () => { | ||
try { | ||
await EnvApi.run([ | ||
await OrgApi.run([ | ||
'services/data', | ||
'--header', | ||
'Accept application/xml', | ||
|