joyent/node-triton#164 change from joyent/node-triton#137 broke 'triton --version' test case

This commit is contained in:
Trent Mick 2017-01-12 11:48:47 -08:00
parent afe1972b69
commit 37d475ffd9

View File

@ -29,7 +29,9 @@ test('triton (basics)', function (tt) {
h.triton('--version', function (err, stdout, stderr) { h.triton('--version', function (err, stdout, stderr) {
if (h.ifErr(t, err, 'triton --version')) if (h.ifErr(t, err, 'triton --version'))
return t.end(); return t.end();
t.ok(/^triton \d+\.\d+\.\d+/.test(stdout)); t.ok(/^Triton CLI \d+\.\d+\.\d+/.test(stdout),
'version on first line');
t.ok(/^https:/m.test(stdout), 'project link in version output');
t.end(); t.end();
}); });
}); });