Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
✅ Tests for Basic web application. Closes #252
Browse files Browse the repository at this point in the history
This commit extends coverage for Basic Web Application to test if Gulp or Grunt
configuration files are created depending on input option - that was previusly not
covered by test causing missing content in template.
  • Loading branch information
peterblazejewicz committed Jul 6, 2015
1 parent 9db6da8 commit 44fd96f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions test/test-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,52 @@ describe('aspnet - Web Application', function() {

});

/*
* yo aspnet Web Application Simple - Grunt option
*/
describe('aspnet - Web Application Simple w/grunt', function() {

util.goCreateApplicationWithOptions('websimple', 'gruntTest', {
grunt: 'grunt'
});

describe('Checking directories', function() {
it('Application directory created', function() {
assert.file('gruntTest/');
});

it('grunt file created', function() {
assert.file('gruntTest/gruntfile.js');
});

it('gulpfile does NOT exist', function() {
assert.noFile('gruntTest/gulpfile.js');
});
});
});

/*
* yo aspnet Web Application Simple - No Grunt option
*/
describe('aspnet - Web Application Simple w/o grunt', function() {

util.goCreateApplication('websimple', 'gulpTest');

describe('Checking directories', function() {
it('Application directory created', function() {
assert.file('gulpTest/');
});

it('gulp file created', function() {
assert.file('gulpTest/gulpfile.js');
});

it('grunt file does NOT exist', function() {
assert.noFile('gulpTest/gruntfile.js');
});
});
});

/*
* yo aspnet Web Application
*/
Expand Down

0 comments on commit 44fd96f

Please sign in to comment.