Beispiel #1
0
 .it('create an app', ctx => {
   expect(ctx.stdout).to.equal(
     'Creating app on Codemason...\n' +
     ' ... Created application\n' +
     ' ... Created remote repository\n' +
     ' ... Added git remote codemason\n'
   )
 })
Beispiel #2
0
 .it('get api token', ctx => {
   expect(ctx.stdout).to.contain('123456')
 })
Beispiel #3
0
 .it('api token empty', ctx => {
   expect(ctx.stdout).to.equal('Not logged in\n')
 })
Beispiel #4
0
 .it('successful logout', ctx => {
   expect(ctx.stdout).to.equal('')
 })
Beispiel #5
0
 .stub(fs, 'outputJSON', (path, json) => {
   expect(json).to.have.property('endpoint')
   expect(json.endpoint).to.equal('http://localhost')
 })
Beispiel #6
0
 .it('create a git remote', ctx => {
   expect(ctx.stdout).to.contain('Remote codemason added')
 })
Beispiel #7
0
 .it('return services', ctx => {
   expect(ctx.stdout).to.contains('Services for pebble')
   expect(ctx.stdout).to.contains('hello-world')
 })