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

Commit 2bb4efc

Browse files
committed
fix tests to work with new templates
1 parent df25c28 commit 2bb4efc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/commands/project/project.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ describe('project', function() {
287287
project.verify(projPath, {}, function(err, reply) {
288288
should.not.exist(err);
289289

290-
capture.output().should.containDeep('\nProject Errors\n--------------\n#/swagger:');
291-
reply.should.containDeep('Results:');
290+
capture.output().should.startWith('\nProject Errors\n--------------\n#/swagger:');
291+
reply.should.startWith('Results:');
292292
done();
293293
})
294294
});
@@ -365,7 +365,7 @@ describe('project', function() {
365365
});
366366

367367

368-
describe('generate-test', function() {
368+
describe.only('generate-test', function() {
369369

370370
var name = 'generate-test';
371371
var projPath;
@@ -403,7 +403,7 @@ describe('project', function() {
403403

404404
});
405405

406-
it('should pass assertion fotmat options', function(done) {
406+
it('should pass assertion format options', function(done) {
407407
var options = { assertionFormat: 'expect', force: true};
408408
project.generateTest(projPath, options, function(err) {
409409
fs.existsSync(path.resolve(projPath, 'test/api/client/hello-test.js')).should.be.ok;
@@ -455,6 +455,7 @@ describe('project', function() {
455455

456456
process.nextTick(function mockResponse() {
457457
stdin.send('y\n');
458+
stdin.send('y\n');
458459
});
459460

460461
project.generateTest(projPath, {}, function(err) {
@@ -488,6 +489,7 @@ describe('project', function() {
488489

489490
process.nextTick(function mockResponse() {
490491
stdin.send('n\n');
492+
stdin.send('n\n');
491493
});
492494

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

0 commit comments

Comments
 (0)