$ docker-compose up
This file contains 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
var bodyParser = require('body-parser'); | |
var express = require('express'); | |
var request = require('supertest'); | |
var fs = require('mock-fs'); | |
var app = express(); | |
app.use(bodyParser.urlencoded({ extended: true })); | |
app.post('/bookmarks', function(req, res) { | |
if (req.body.url && req.body.tags) { | |
return res.sendStatus(201); |
This file contains 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
/*eslint no-console:0*/ | |
'use strict'; | |
const assert = require('assert'); | |
const execSync = require('child_process').execSync; | |
const cmd = process.argv[2]; | |
const validCmds = ['usb', 'fpa', 'pull-all', 'hard-reset-all', 'ls-branches']; | |
if (!cmd || !validCmds.find(validCmd => validCmd === cmd)) { |