Skip to content

Instantly share code, notes, and snippets.

View big-kahuna-burger's full-sized avatar
🌑

Aranđel Šarenac big-kahuna-burger

🌑
View GitHub Profile
@big-kahuna-burger
big-kahuna-burger / test.js
Created March 22, 2017 21:11
setup and teardown in tape
var test = require('tape');
test('setup', function (t) {
// ...
t.end();
});
// tests go here
test('teardown', function (t) {
{
"env": {
"node" : true,
"es6" : true,
"mocha": true
},
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": [2, "never"],
"array-callback-return": "error",
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
import git, os, shutil
DIR_NAME = "temp"
REMOTE_URL = "https://github.com/hasinhayder/LightBulb.git"
if os.path.isdir(DIR_NAME):
shutil.rmtree(DIR_NAME)
os.mkdir(DIR_NAME)