Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlord committed Jan 17, 2014
1 parent 25f0827 commit c04fb70
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions problems/merge_tada/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function () {
return { args: [], stdin: null }
}
1 change: 1 addition & 0 deletions problems/merge_tada/solution.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(true)
18 changes: 18 additions & 0 deletions problems/merge_tada/verify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node

var spawn = require('child_process').spawn
var concat = require('concat-stream')

var remote = spawn('git', ['remote', '-v'])

remote.stdout.pipe(concat(onRemote))

// check that there is no longer a feature branch
// here is what i added to test branch

function onRemote(output) {
var show = output.toString().trim()
if (show.match("upstream") && show.match("github.com/jlord/"))
console.log(true)
else return console.log("no upstream remote")
}

0 comments on commit c04fb70

Please sign in to comment.