Permalink
Browse files

passing log test

  • Loading branch information...
substack committed Oct 2, 2012
1 parent ed74b8c commit b203aa697f52273331964be186705d75451ddb82
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/log.js
View
@@ -0,0 +1,20 @@
+var test = require('tap').test;
+var run = require('../');
+var through = require('through');
+
+test('log ok', function (t) {
+ t.plan(1);
+
+ var data = '';
+ var ws = through(
+ function (buf) { data += buf },
+ function () {
+ var lines = data.split('\n');
+ t.ok(
+ lines[lines.length - 6],
+ 'commit 95e4802118459f2eec942cba789bd451702e3aa4'
+ );
+ }
+ );
+ var ps = run('git', [ 'log' ]).pipe(ws);
+});

0 comments on commit b203aa6

Please sign in to comment.