Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-50-non-ascii / main.js
596 bytesRaw
1 | |
2 | |
3 | 'use strict'; |
4 | |
5 | const path = require('path'); |
6 | const assert = require('assert'); |
7 | const utils = require('../utils.js'); |
8 | |
9 | assert(!module.parent); |
10 | assert(__dirname === process.cwd()); |
11 | |
12 | const target = process.argv[2] || 'host'; |
13 | const input = './test-x-index.js'; |
14 | const output = './АБРАКАДАБРА/test-output.exe'; // cyrillic |
15 | |
16 | let right; |
17 | utils.mkdirp.sync(path.dirname(output)); |
18 | |
19 | utils.pkg.sync([ |
20 | '--target', target, |
21 | '--output', output, input |
22 | ]); |
23 | |
24 | right = utils.spawn.sync( |
25 | output, [], {} |
26 | ); |
27 | |
28 | assert.equal(right, '42\n42\n'); |
29 | utils.vacuum.sync(path.dirname(output)); |
30 |
Built with git-ssb-web