Skip to content

Commit

Permalink
Repair generatorMissing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nporteschaikin committed Mar 26, 2015
1 parent 92c5592 commit 42dc552
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1726,16 +1726,16 @@ describe('template',
}
).then(
function (template) {
return template.run(target, 'foo');
return template.run(target, 'foo2');
}
).catch(
function (error) {
error.toString().should.eq('Error: `foo` is not a generator in this template');
return template.remove(name);
}
).then(
function () {
return rimraf(target, done);
error.toString().should.eq('Error: `foo2` is not a generator in this template');
return template.remove(name).then(
function () {
return rimraf(target, done);
}
);
}
)
}
Expand Down

0 comments on commit 42dc552

Please sign in to comment.