Nate Fischer
1a31356343
refactor: use require instead of import
...
No change to logic. This swaps over tests to use require() since
everything is currently designed for the commonjs module system.
2025-04-07 22:44:24 -07:00
Nate Fischer
2ee83ebf74
refactor(test): update AVA and refactor tests ( #760 )
...
This updates tests for `AVA` 19.0.0+.
`AVA` 0.18.0 has a breaking change which changes the current working directory
for tests. As a result, we need to change 'resources' -> 'test/resources' (and
similar path changes).
`AVA` 0.19.0 has a breaking change that all tests must run at least one assert.
This breaking change was already resolved by #746 , so no change was necessary in
this PR.
This updates to `AVA` 0.21.0, since there are no other breaking changes.
2017-08-11 11:03:13 -07:00
Brandon Freitag
522a46dcf4
Deprecate common.getUserHome, advise using os.homedir instead ( #725 )
...
* Deprecate common.getUserHome, advise using os.homedir instead
* Remove common.getUserHome
2017-06-06 21:10:27 -07:00
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
81e2803c45
test: set up ava and move cd.js ( #561 )
...
* test: set up ava and move cd.js
Set up ava as the new test framework. Migrate the tests for the cd command to
use the ava framework.
* refactor: reorder imports, remove useless dep
2016-11-18 19:50:36 -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
6ebc2d3db7
refactor(shellstring): return consistent objects
...
- fix(string): no longer overrides string prototype
- exec() now returns a ShellString object
2016-02-19 14:54:30 -08:00
Nate Fischer
dfaa78abef
feat(cd): cd() (no args) changes to home directory
2016-01-24 13:19:57 -08:00
Ari Porad
c4220691b7
Merge pull request #293 from nfischer/feat-home-directory-tilde
...
feat: add tilde expansion to expand()
2016-01-24 11:50:40 -08:00
Nate Fischer
b3f266469b
feat: add tilde expansion to expand()
...
This adds tilde expansion to the expand() function. Arguments starting with '~/'
will have the tilde expanded to the user's home directory, as with Bash.
2016-01-23 21:52:20 -08:00
Nate Fischer
1979d07776
Adding previousDir field to common.state to allow cd('-') to work like Bash
2016-01-23 21:24:13 -08:00
Artur Adib
193968a978
remove old shims
2013-09-21 10:19:38 -04:00
Artur Adib
21f721cb45
more stringent jshint; catch leaks/undefs
2013-09-21 10:12:28 -04:00
Artur Adib
ef795af7e4
adding jshint to tests; all tests pass
2012-12-27 16:32:31 -05:00
Artur Adib
e4d9dabe52
introducing config.silent, config.fatal
...
deprecates silent()
2012-12-01 09:48:23 -05:00
Artur Adib
11614fd516
Deprecated: verbose() and exists()
2012-03-15 14:20:10 -04:00
Artur Adib
1739ee3bb3
sed
2012-03-01 21:36:16 -05:00
Artur Adib
17bda2e0e5
test/pwd
2012-03-01 20:30:20 -05:00
Artur Adib
f4a2ae3379
first commit
2012-03-01 20:22:44 -05:00