Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixup deps

  • Loading branch information...
commit ded7f154872a2e191e368b156eb38a981e15cec1 1 parent 083b162
@mklabs mklabs authored
View
1  .gitignore
@@ -1 +1,2 @@
node_modules
+temp/
View
2  app/index.js
@@ -2,7 +2,7 @@
var util = require('util'),
fs = require('fs'),
path = require('path'),
- yeoman = require('../../../../');
+ yeoman = require('yeoman-generators');
module.exports = AppGenerator;
View
2  generator/index.js
@@ -1,6 +1,6 @@
var util = require('util'),
- yeoman = require('../../../../');
+ yeoman = require('yeoman-generators');
// generator generator...
View
6 package.json
@@ -21,9 +21,11 @@
"url": "git://github.com/yeoman/generator-webapp.git"
},
"scripts": {
- "test": "node node_modules/mocha/bin/mocha test/test-*.js"
+ "test": "mocha --reporter spec"
+ },
+ "dependencies": {
+ "yeoman-generators": "https://github.com/yeoman/generators/archive/master.tar.gz"
},
- "dependencies": {},
"devDependencies": {
"mocha": "~1.7.1"
},
View
31 test/test.js
@@ -0,0 +1,31 @@
+
+var path = require('path');
+var helpers = require('yeoman-generators').test;
+var assert = require("assert");
+
+
+describe('Webapp generator test', function() {
+ before(helpers.before(path.join(__dirname, './temp')));
+
+ it('every generator can be required without throwing', function() {
+ // not testing the actual run of generators yet
+ this.app = require('../app');
+ this.generator = require('../generator');
+ });
+
+
+ // FIXME
+ it.skip('creates expected files', function() {
+
+ // Use helpers.assertFile() to help you test the output of your generator
+ //
+ // Example:
+ //
+ // // check file exists
+ // helpers.assertFile('app/model/post.js');
+ // // Check content
+ // helpers.assertFile('app/model/post.js', /Backbone\.model/);
+ it('should create expected files');
+
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.