Skip to content

Commit

Permalink
chore(organization): Create integration-tests directory
Browse files Browse the repository at this point in the history
We will separate unit and integration tests in order to make it clear
when running CI jobs which type of test is being run.  Also, we'll focus
the postpack tests on integration tests.

Related to: #133
  • Loading branch information
VivekMChawla committed Feb 24, 2019
1 parent 2c5c9e4 commit 2ef0abe
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/commands/falcon/adk/create.test.ts

This file was deleted.

39 changes: 39 additions & 0 deletions test/integration-tests/commands/falcon/adk/create.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { test } from '@salesforce/command/lib/test';
//import { ensureJsonMap, ensureString } from '@salesforce/ts-types';

export enum KEY {
DOWN = '\x1B\x5B\x42',
UP = '\x1B\x5B\x41',
ENTER = '\x0D',
SPACE = '\x20'
}

describe('falcon:adk:create', () => {


});




/*
describe('falcon:adk:create', () => {
test
// .stdin(KEY.ENTER, 30000)
// .stdin(KEY.ENTER, 34000)
// .stdin(KEY.ENTER, 38000)
.stdout({print: true})
.timeout(2000000)
.do(() => console.log('foo'))
// .do(({stdout}) => expect(stdout).to.equal('foo\n'))
// .it('does something with context', ctx => {
// expect(ctx.stdout).to.equal('foos\n');
// });
.command(['falcon:adk:create'])
.do(() => console.log('foo22222222'))
.it('runs falcon:adk:create', ctx => {
//console.log(ctx.stdout);
// expect(ctx.stdout).to.contain('Initialization Complete', 'HORROR! No Inclusion!');
});
});
*/

0 comments on commit 2ef0abe

Please sign in to comment.