fix(core): update

This commit is contained in:
2020-02-02 13:45:59 +00:00
parent cfdd54eff1
commit 97c3ccb329
7 changed files with 744 additions and 759 deletions

View File

@ -30,14 +30,14 @@ tap.test('should add question to SmartInteract instance', async () => {
{
name: 'some.dotted.name',
type: 'input',
message: 'what is your second favourite color? Answer is red',
message: 'what is your second favourite color? Answer is aValidAnswer',
default: 'aValidAnswer'
}
]);
});
tap.test('should use default value when not in CI', async () => {
let answerBucket = await testInteract.runQueue();
const answerBucket = await testInteract.runQueue();
expect(answerBucket.getAnswerFor('testQuestion1')).to.equal('blue');
expect(answerBucket.getAnswerFor('testQuestion2')).to.equal('red');
expect(answerBucket.getAnswerFor('some.dotted.name')).to.equal('aValidAnswer');