Skip to content

Commit a0bd8c6

Browse files
committed
chore(test): working test in Node 0.12 in separate docker container, for #5
1 parent 705f72d commit a0bd8c6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "gt test/jsTest.js --output",
8+
"terminal-test": "node test/terminal-test.js",
89
"use-case": "node test/use-case.js & node test/use-case-nested.js",
910
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1011
"issues": "git-issues",
@@ -28,7 +29,7 @@
2829
"license": "MIT",
2930
"devDependencies": {
3031
"git-issues": "1.2.0",
31-
"gt": "0.9.1",
32+
"gt": "0.10.0",
3233
"pre-git": "3.8.3",
3334
"semantic-release": "6.2.1"
3435
},

test/terminal-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
console.log('checking terminal resolution');
4+
console.log('is terminal?', process.stdout.isTTY);
5+
if (process.stdout.isTTY) {
6+
console.log('terminal window size',
7+
process.stdout.getWindowSize());
8+
}

0 commit comments

Comments
 (0)