Corrected unit test in gerrit prompt().
The method was testing the init() method, not the prompt() method. This corrects the test. Change-Id: Id26e386aa3d6be0eb7d4778cf068679fec01426b
This commit is contained in:
parent
43b2171ce4
commit
36695dd8f8
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue