git ssb

0+

cel-desktop / ssb-pkg



Tree: cfc8d49135488f7554210234b3a503c2dbd6c6a5

Files: cfc8d49135488f7554210234b3a503c2dbd6c6a5 / test / test-50-observe-snapshot-root-2 / main.js

553 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const path = require('path');
6const assert = require('assert');
7const utils = require('../utils.js');
8
9assert(!module.parent);
10assert(__dirname === process.cwd());
11
12const target = process.argv[2] || 'host';
13const input = './test-x-index.js';
14const output = './test-output.exe';
15
16let right;
17
18utils.pkg.sync([
19 '--target', target,
20 '--output', output, input
21]);
22
23right = utils.spawn.sync(
24 './' + path.basename(output), [],
25 { cwd: path.dirname(output) }
26);
27
28assert.equal(right, 'ok\n');
29utils.vacuum.sync(output);
30

Built with git-ssb-web