Nate Fischer
ac0ff873f1
refactor: add config.reset() and .resetForTesting() ( #641 )
...
Add .reset() and .resetForTesting() to shell.config and use .resetForTesting()
as a standard set-up for unit tests.
2017-01-07 22:40:38 -08:00
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
Nate Fischer
057a8c89fc
test: refactor popd tests to AVA ( #626 )
2016-12-19 22:48:11 -08:00
Nate Fischer
2395214fee
chore: switch to eslint ( #504 )
...
* chore: switch to eslint
* fix: works on older versions of NodeJS now
* chore: fix curly braces
* chore: fix indents and remove jshint references
2016-08-07 12:16:29 -07:00
Artur Adib
193968a978
remove old shims
2013-09-21 10:19:38 -04:00
Marcus Stade
2f142c1b3c
Tests for dirs and popd options
...
Finished the dirs implementation to take `-N` and `+N` arguments, and
added more tests to cover all options. This should cover most bases.
2012-12-29 07:00:34 +01:00
Marcus Stade
829bdbc785
Improved tests and implementation.
...
Plenty of errors surfaced with better test coverage. Aside from fixing
the broken implementations, this also prompted me to fully implement
the dirs command.
Also changed the run-tests script to always set cwd to the test folder,
so that tests that change cwd don't affect others (ehum, that'd be
mine.)
More tests to follow.
2012-12-29 03:43:23 +01:00
Marcus Stade
387babda6b
Improved tests a little bit.
...
Added pwd check to all tests, and added a test for invalid use of
popd. More tests to come.
2012-12-27 18:06:52 +01:00
Marcus Stade
19d3d91bb6
Make _dirs() return an array instead of a string
2012-12-27 17:52:11 +01:00
Marcus Stade
18a10bb3d9
Added semicolons and removed dirs from exports
2012-12-27 17:46:37 +01:00
Marcus Stade
3e29c02734
Initial work
2012-12-25 20:57:38 +01:00