Created
May 13, 2014 17:40
-
-
Save tonytopper/40e325f0ab117ca6077b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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