Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-50-cannot-css-script / main.js
699 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 output = './test-output.exe'; |
13 | const standard = 'stdout'; |
14 | |
15 | let right; |
16 | |
17 | const inspect = (standard === 'stdout') |
18 | ? [ 'inherit', 'pipe', 'inherit' ] |
19 | : [ 'inherit', 'inherit', 'pipe' ]; |
20 | |
21 | right = utils.pkg.sync([ |
22 | '--target', target, |
23 | '--output', output, '.' |
24 | ], inspect); |
25 | |
26 | assert(right.indexOf('\x1B\x5B') < 0, 'colors detected'); |
27 | assert(right.indexOf('Non-javascript file is specified in \'scripts\'') >= 0); |
28 | assert(right.indexOf('animate.css') >= 0); |
29 | utils.vacuum.sync(output); |
30 |
Built with git-ssb-web