Merge "Corrected unit test in gerrit prompt()."
This commit is contained in:
@@ -98,11 +98,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('prompt()', function () {
|
describe('prompt()', function () {
|
||||||
it('should return a generator',
|
it('should return a promise that resolves with a generator',
|
||||||
function () {
|
function () {
|
||||||
var generator = mocks.buildGenerator();
|
var generator = mocks.buildGenerator();
|
||||||
var outputGenerator = gerrit.init(generator);
|
var outputPromise = gerrit.prompt(generator);
|
||||||
expect(outputGenerator).toEqual(generator);
|
outputPromise.then(function (outputGenerator) {
|
||||||
|
expect(outputGenerator).toEqual(generator);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should revert to config defaults if no answers provided',
|
it('should revert to config defaults if no answers provided',
|
||||||
|
|||||||
Reference in New Issue
Block a user