Skip to content

Instantly share code, notes, and snippets.

Tony Topper tonytopper

Block or report user

Report or block tonytopper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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) {
console.error(err);
You can’t perform that action at this time.