git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / test / test-50-cannot-css-script / main.js

699 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const assert = require('assert');
6const utils = require('../utils.js');
7
8assert(!module.parent);
9assert(__dirname === process.cwd());
10
11const target = process.argv[2] || 'host';
12const output = './test-output.exe';
13const standard = 'stdout';
14
15let right;
16
17const inspect = (standard === 'stdout')
18 ? [ 'inherit', 'pipe', 'inherit' ]
19 : [ 'inherit', 'inherit', 'pipe' ];
20
21right = utils.pkg.sync([
22 '--target', target,
23 '--output', output, '.'
24], inspect);
25
26assert(right.indexOf('\x1B\x5B') < 0, 'colors detected');
27assert(right.indexOf('Non-javascript file is specified in \'scripts\'') >= 0);
28assert(right.indexOf('animate.css') >= 0);
29utils.vacuum.sync(output);
30

Built with git-ssb-web