Files: cc32919e93ce91c6d66985c7ca2b78da5ea7f92d / test / run.js
439 bytesRaw
1 | var spawn = require('child_process').spawn |
2 | var tape = require('tape') |
3 | |
4 | var env = Object.create(process.env) |
5 | env.PATH = 'test:' + env.PATH |
6 | var remote = 'test.js://foo' |
7 | |
8 | function git(args, cb) { |
9 | spawn('git', args, { |
10 | env: env, |
11 | stdio: ['ignore', 'ignore', 'inherit'] |
12 | }).on('close', cb) |
13 | } |
14 | |
15 | tape('push to the remote', function (t) { |
16 | git(['push', remote], function (code) { |
17 | t.equals(code, 0, 'exit status') |
18 | t.end() |
19 | }) |
20 | }) |
21 |
Built with git-ssb-web