Skip to content

Instantly share code, notes, and snippets.


Tony Topper tonytopper

View GitHub Profile
View gist:40e325f0ab117ca6077b
/*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);
View gist:9811434
var fs = require('fs');
var fileName = __dirname + '/data.json';
try {
fs.readFile(fileName, 'utf8', function(err, data) {
if (err) throw err;
data = JSON.parse(data);
} catch(err) {
You can’t perform that action at this time.