Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
fix: carrot dev config update template
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoonan-salesforce committed Dec 4, 2018
1 parent 9dea074 commit 6620bfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class App extends Generator {
'@oclif/dev-cli@^1',
'@oclif/plugin-help@^2',
'globby@^8',
'@salesforce/[email protected]',
'@salesforce/dev-config@^1.1.4',
'sinon@5',
)
break
Expand Down
6 changes: 4 additions & 2 deletions templates/sfdxPlugin/test/command.test.ts.ejs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { expect, test } from '@salesforce/command/dist/test';
import { expect, test } from '@salesforce/command/lib/test';
import { AnyJson, ensureJsonMap, ensureString } from '@salesforce/ts-types';

describe('<%- topic %>:<%- name %>', () => {
test
.withOrg({ username: '[email protected]' }, true)
.withConnectionRequest(request => {
if (request.url.match(/Organization/)) {
const requestMap = ensureJsonMap(request);
if (ensureString(requestMap.url).match(/Organization/)) {
return Promise.resolve({ records: [ { Name: 'Super Awesome Org', TrialExpirationDate: '2018-03-20T23:24:11.000+0000'}] });
}
return Promise.resolve({ records: [] });
Expand Down

0 comments on commit 6620bfc

Please sign in to comment.