15 Commits

Author SHA1 Message Date
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
6f26d52eab test: refactor ln tests to AVA (#610) 2016-12-09 01:25:10 -08:00
Gyandeep Singh
93ea025755 Revert "refactor: replace fs.existsSync" (fixes #531) (#532)
This reverts commit ab8cf5a8e027b28fc7b784587e4339d2b6d0f08f.
2016-10-17 20:14:43 -07:00
Nate Fischer
ab8cf5a8e0 refactor: replace fs.existsSync (#509)
* refactor: replace fs.existsSync

* fix: add support for v0.10
2016-08-20 18:28:49 -07: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
Nate Fischer
27a760299c refactor: more commands return ShellStrings, tests for code 2016-03-15 19:48:13 -07:00
Nate Fischer
ed4c09fb77 test(ln): add tests for linking to '.' directory 2016-02-19 12:57:33 -08:00
Nate Fischer
3a7eb3f2ad feat(glob): glob support for (almost) all commands 2016-02-13 21:22:48 -08:00
Burak Yigit Kaya
fb5a7ece66 Fix symlinking on Windows
Fixes symlink creation on Windows systems and adds a test
for symlinking directories since it needs special treatment
on Windows.

Fixes #301.
2016-01-31 13:15:22 +02:00
Burak Yigit Kaya
175f5e1efd Fix tests on Windows 2016-01-27 22:53:31 +02:00
Brandon Freitag
70ec630f92 Add invalid tests for ln 2016-01-25 01:59:20 -08:00
Brandon Freitag
bceb066c5c Fix relative symlinks, add tests
When creating a symlink with a relative path, e.g. `ln('-s', '../baz.txt', 'foo/bar/link')`,
the link will be created releative to the destination directory, not to the
current working directory of the node process. Also added tests for
functionality.
2016-01-24 22:35:45 -08:00
Michael Schoonmaker
93987f6a4a Add a regression test for ln treating abspaths badly. 2013-10-11 11:33:49 -07:00
Michael Schoonmaker
b715c2c240 Add ln support, including both -s and -f options. 2013-10-10 18:03:09 -07:00