mirror of
https://github.com/status-im/create-dmg.git
synced 2025-02-21 15:28:34 +00:00
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
|
import path from 'path';
|
||
|
import fs from 'fs';
|
||
|
import test from 'ava';
|
||
|
import execa from 'execa';
|
||
|
import tempfile from 'tempfile';
|
||
|
|
||
|
test(async t => {
|
||
|
const cwd = tempfile();
|
||
|
fs.mkdirSync(cwd);
|
||
|
await execa(path.join(__dirname, 'cli.js'), [path.join(__dirname, 'fixture.app')], {cwd});
|
||
|
t.true(fs.existsSync(path.join(cwd, 'fixture 0.0.1.dmg')));
|
||
|
});
|