mirror of
https://github.com/shelljs/shelljs.git
synced 2025-12-08 20:35:51 +00:00
* Move ava-test/ directory to test/ * Remove unnecessary run-tests.js script * Run only ava during npm test script
22 lines
297 B
JavaScript
22 lines
297 B
JavaScript
import fs from 'fs';
|
|
|
|
import test from 'ava';
|
|
|
|
import shell from '..';
|
|
|
|
shell.config.silent = true;
|
|
|
|
|
|
//
|
|
// Valids
|
|
//
|
|
|
|
test('basic usage', t => {
|
|
const tmp = shell.tempdir();
|
|
t.falsy(shell.error());
|
|
t.truthy(fs.existsSync(tmp));
|
|
|
|
// It's a directory
|
|
t.truthy(shell.test('-d', tmp));
|
|
});
|