Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 0fd99c5

Browse files
committed
added done callback to tests to avoid a timeout
1 parent 41dd2d4 commit 0fd99c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/commands/project/project.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ describe('project', function() {
456456
setTimeout(function mockResponse() {
457457
stdin.send('y\n');
458458
stdin.send('y\n');
459+
done();
459460
}, 250);
460461

461462
project.generateTest(projPath, {}, function(err) {
@@ -490,6 +491,7 @@ describe('project', function() {
490491
setTimeout(function () {
491492
stdin.send('n\n');
492493
stdin.send('n\n');
494+
done();
493495
}, 250);
494496

495497
project.generateTest(projPath, {}, function(err) {
@@ -511,6 +513,7 @@ describe('project', function() {
511513

512514
process.nextTick(function mockResponse() {
513515
stdin.send('a\n');
516+
done();
514517
});
515518

516519
project.generateTest(projPath, {}, function(err) {

0 commit comments

Comments
 (0)