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 () {
|
||||
it('should return a generator',
|
||||
it('should return a promise that resolves with a generator',
|
||||
function () {
|
||||
var generator = mocks.buildGenerator();
|
||||
var outputGenerator = gerrit.init(generator);
|
||||
expect(outputGenerator).toEqual(generator);
|
||||
var outputPromise = gerrit.prompt(generator);
|
||||
outputPromise.then(function (outputGenerator) {
|
||||
expect(outputGenerator).toEqual(generator);
|
||||
});
|
||||
});
|
||||
|
||||
it('should revert to config defaults if no answers provided',
|
||||
|
Loading…
Reference in New Issue
Block a user