mirror of
https://github.com/shelljs/shelljs.git
synced 2025-12-08 20:35:51 +00:00
No change to logic. This swaps over tests to use require() since everything is currently designed for the commonjs module system.
19 lines
329 B
JavaScript
19 lines
329 B
JavaScript
const test = require('ava');
|
|
|
|
const shell = require('..');
|
|
|
|
shell.config.silent = true;
|
|
|
|
//
|
|
// Valids
|
|
//
|
|
|
|
test('existing variables', t => {
|
|
t.is(shell.env.PATH, process.env.PATH);
|
|
});
|
|
|
|
test('variables are exported', t => {
|
|
shell.env.SHELLJS_TEST = 'hello world';
|
|
t.is(shell.env.SHELLJS_TEST, process.env.SHELLJS_TEST);
|
|
});
|