shelljs/test/env.js
Brandon Freitag 7fa4b995bf Finalize moving to ava (#630)
* Move ava-test/ directory to test/

* Remove unnecessary run-tests.js script

* Run only ava during npm test script
2016-12-20 11:27:02 -08:00

19 lines
319 B
JavaScript

import test from 'ava';
import shell from '..';
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);
});