Skip to content

Instantly share code, notes, and snippets.

@tonytopper
Created May 13, 2014 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonytopper/40e325f0ab117ca6077b to your computer and use it in GitHub Desktop.
Save tonytopper/40e325f0ab117ca6077b to your computer and use it in GitHub Desktop.
/*global describe, beforeEach, it */
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('largo generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('largo:app', [
'../../app'
]);
done();
}.bind(this));
});
it('creates expected files', function (done) {
var expected = [
// add files you expect to exist here.
];
helpers.mockPrompt(this.app, {
'someOption': true
});
this.app.options['skip-install'] = true;
this.app.run({}, function () {
helpers.assertFile(expected);
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment