Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-50-config-log / main.js
679 bytesRaw
1 | |
2 | |
3 | 'use strict'; |
4 | |
5 | const assert = require('assert'); |
6 | const utils = require('../utils.js'); |
7 | |
8 | assert(!module.parent); |
9 | assert(__dirname === process.cwd()); |
10 | |
11 | const target = process.argv[2] || 'host'; |
12 | const input = './test-x-index.js'; |
13 | const output = './test-output.exe'; |
14 | const standard = 'stdout'; |
15 | |
16 | let right; |
17 | |
18 | const inspect = (standard === 'stdout') |
19 | ? [ 'inherit', 'pipe', 'inherit' ] |
20 | : [ 'inherit', 'inherit', 'pipe' ]; |
21 | |
22 | right = utils.pkg.sync([ |
23 | '--target', target, |
24 | '--output', output, input |
25 | ], inspect); |
26 | |
27 | assert(right.indexOf('\x1B\x5B') < 0, 'colors detected'); |
28 | assert(right.indexOf('stylus options to resolve imports') >= 0); |
29 | utils.vacuum.sync(output); |
30 |
Built with git-ssb-web