14 Commits

Author SHA1 Message Date
JPeer264
3843d5fb52 Refactor move 2017-02-18 18:30:02 +01:00
JP Richardson
cc1aaa949e Merge pull request #335 from jprichardson/move-tests
Refactor move() tests
2017-01-01 13:24:57 -06:00
RyanZim
fde5b026d5 Refactor move() tests
- Refactor legacy setup
- Merge move-clobber.test.js into move.test.js
- Add more complete testing for overwrite option
- Remove fixtures directory, create fixtures with code
2016-12-31 13:45:41 -05:00
RyanZim
90cbf82510 Cleanup lib/move/index.js 2016-12-31 11:26:19 -05:00
RyanZim
5be5ae3053 Rename clobber to overwrite
Keep clobber for backwards compatibility

Fixes #172
2016-12-29 17:38:45 -05:00
RyanZim
fd3c9e6998 Remove move()'s broken limit option 2016-11-14 16:55:14 -05:00
Nathan Phillip Brink
57d5a39931 Fix move clobber tests to work around graceful-fs bug.
When trying to rename a directory over another directory, graceful-fs-4.1.10
(maybe other versions?) takes 1 minute to fail the call with an error.
This causes the test to timeout. The workaround is to increase the timeout
of that one test to 1m30s.

See https://github.com/isaacs/node-graceful-fs/issues/98
2016-11-14 11:11:52 -05:00
RyanZim
a837927988 Inline rimraf
We aren't using rimraf's glob support, and glob is a rather large
dependency.

Changes:

- Remove glob support from rimraf
- Remove move()'s dependency on rimraf; use fs-extra.remove instead
- Make rimraf a devDependency; it is used in the tests
2016-10-28 15:46:30 -04:00
bartland
22c19fe1d0 move.test modified to support testing files with both LF (NIX) and
CRLF (Windows) line endings. This commit fixes #188.
2015-10-31 12:36:12 +11:00
Nick Santos
24948a4e0c More robust handling of errors moving across virtual drives
Discovered while investigating
https://github.com/Medium/phantomjs/issues/341
where moving a directory across virtual drives caused an
EXDEV error that shunted things down the "move file"
instead of "move directory" codepath
2015-08-06 23:52:15 -04:00
JP Richardson
49726e8718 lib/move/__tests__: moved 2015-06-24 10:39:45 -05:00
JP Richardson
3304feb1bb lib/move/index: fix regression (forgot to export move) 2015-06-17 06:59:58 -05:00
JP Richardson
acc4def0de lib/move: moved default options 2015-06-17 06:49:17 -05:00
JP Richardson
bcc1b77591 lib/move/index: from lib/move 2015-06-17 06:39:42 -05:00