Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Yeoman assertion #311

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -30,6 +30,7 @@
"chalk": "^1.0.0",
"wiredep": "^2.2.2",
"yeoman-generator": "^0.18.5",
"yeoman-assert": "^2.0.0",
"yosay": "^1.0.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/app_slug.js
Expand Up @@ -3,7 +3,7 @@
var fs = require('fs');
var util = require('util');
var path = require('path');
var assert = require('assert');
var assert = require('yeoman-assert');
var helpers = require('yeoman-generator').test;

describe('Gulp Webapp generator slug name', function () {
Expand Down Expand Up @@ -38,7 +38,7 @@ describe('Gulp Webapp generator slug name', function () {

this.webapp.run(function () {
// Check if all files are created for the test
helpers.assertFile(expected);
assert.file(expected);

// read JS Files
var bowerJson = fs.readFileSync('bower.json', 'utf8');
Expand Down
2 changes: 1 addition & 1 deletion test/gulp_file.js
Expand Up @@ -3,7 +3,7 @@
var fs = require('fs');
var util = require('util');
var path = require('path');
var assert = require('assert');
var assert = require('yeoman-assert');
var helpers = require('yeoman-generator').test;

describe('Gulp Webapp generator: tasks', function () {
Expand Down
3 changes: 2 additions & 1 deletion test/sass_feature.js
Expand Up @@ -2,6 +2,7 @@
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
var assert = require('yeoman-assert');

describe('Gulp webapp generator: sass feature', function () {
beforeEach(function (done) {
Expand Down Expand Up @@ -33,7 +34,7 @@ describe('Gulp webapp generator: sass feature', function () {
});

app.run(function () {
helpers.assertFile(expected);
assert.file(expected);
done();
});
};
Expand Down
3 changes: 2 additions & 1 deletion test/test.js
Expand Up @@ -2,6 +2,7 @@
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
var assert = require('yeoman-assert');

describe('Gulp webapp generator test', function () {
beforeEach(function (done) {
Expand Down Expand Up @@ -44,7 +45,7 @@ describe('Gulp webapp generator test', function () {
});

this.webapp.run(function () {
helpers.assertFile(expected);
assert.file(expected);
done();
});
});
Expand Down