DavidLi119
87513997a2
Fixed #708 : Added 'use strict' and replaced var with let/const in fs.appendFile.spec.js ( #713 )
...
* Add files via upload
* Add files via upload
* Revert "Add files via upload"
This reverts commit 214977d8bf
.
* Update fs.appendFile.spec.js
* s
* Revert "s"
This reverts commit 8aa5cbbbd6
.
* Changed all `let` to `const`
As informed, all variables will not change at all in this file, therefore all `let` declarations have been changed to `const`
2019-01-31 18:42:50 -05:00
bonbon12
1e660a9d07
Fixed #699 Replacing var with let/const and adding strict mode ( #706 )
...
* Updated File to use let/const and strict mode
* Update path-resolution.spec.js
* Updated path-resolution.spec.js
Upon review and further inspection, there was a realization that there was need for the "let" variable as all variable were not modified.
Instead, "const" was used.
2019-01-31 16:42:38 -05:00
Iryna Thompson
3f619fdcb8
Fixed #665 : Replaced var with let or const and added strict mode fs.a… ( #688 )
...
* Fixed #665 : Replaced var with let or const and added strict mode fs.access.spec.js
* Replaced let with const
* Replaced all let with const
2019-01-31 16:08:19 -05:00
OlenaVyshnevska
fc545ee3c7
code refactoring, added strict mode ( #704 )
2019-01-31 15:25:57 -05:00
Yuansheng Lu
e5481efa9b
Fix issue #660 : Updated the code to replace var with let, const in strict mode ( #694 )
...
* Modify the test file to fix issue-660
* change let to const
2019-01-31 15:11:07 -05:00
Vladimir Rozin
5918cf6ae7
changed fs.watch.spec.js according to filed issue-666 ( #680 )
2019-01-31 14:12:08 -05:00
jatinkumar
0380a8153c
Fixed #667 : Replaced var with const and added strict mode in fs.readdir.spec.js ( #675 )
...
* Replaced var with either const or let and added strict mode in fs.readdir.spec.js
* Replaced let with const
2019-01-31 14:07:31 -05:00
Nathaniel Ngo
4a39dcc2f0
Fixes Issue#674: Refactored var declarations to const or let declarations to address i… ( #676 )
...
* Refactored var declarations to const or let declarations to address issue#674
* refactored let to const when variable does not change values
2019-01-31 14:00:48 -05:00
andrewkoung
4de0bbfafd
Fixes #661 : replaced var with const ( #669 )
...
* replaced var with const for the most part
* Update fs.symlink.spec.js
fixed line 93 and added strict mode
2019-01-31 13:52:39 -05:00
David Humphrey
5f10cc2fde
Add test API to shim indexedDB when necessary for better coverage
2019-01-03 00:08:22 -05:00
David Humphrey
c0acdb97d6
Match node's layout for access modes on fs, with tests
2019-01-02 22:23:58 -05:00
David Humphrey
f4ff2e9ed9
Add Filer.fs to support creating a filesystem like node.js ( #651 )
...
* Add Filer.fs to support
* Update README code examples, add tests, also expose Path as path
2019-01-02 21:21:25 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
85a8c21dc1
Support file:// URLs and Buffers for path args, throw when invalid
2019-01-02 19:46:36 -05:00
David Humphrey
1ad81f9bae
Remove WebSQL provider (last supported in v0.0.44)
2019-01-02 13:22:51 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
bc861bfd4a
Move open files to its own module, properly close fds in tests
2018-12-29 15:11:39 -05:00
David Humphrey
d4bfcd71c2
Fix #602 : fix mode masking issues, correct X_OK case in fs.access
2018-12-21 23:07:33 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
bfe4385a83
Fix #633 : fix test failure in coverage run
2018-12-20 19:00:39 -05:00
Julia Yatsenko
9f7f93776e
fix #635 : added test for fs.ftruncate()
2018-12-20 15:07:17 -05:00
Vince
b0809272a1
Included unwatchFile in test index.js
...
Co-authored-by: David Humphrey <david.humphrey@senecacollege.ca>
2018-12-17 16:39:44 -05:00
Vince
fb76c0ec1e
Fix #445 test cases for fs.unwatchFile
2018-12-17 16:39:44 -05:00
qwang135
9a7d3514d8
Fix #514 : add test for fsPromises.lstat with directory
...
Co-authored-by: David Humphrey <david.humphrey@senecacollege.ca>
2018-12-17 16:30:21 -05:00
Yuecheng Wu
848cc7d3de
Adding more tests for fs.copyFile
...
Co-authored-by: David Humphrey <david.humphrey@senecacollege.ca>
2018-12-17 16:18:06 -05:00
David Humphrey
ba188169d6
Review fixes, skip copyFile test for now
2018-12-17 16:06:24 -05:00
mordax
62cbe11a93
Fixed lint issues in copyFile test
2018-12-17 15:56:55 -05:00
mordax
ef80713c33
Added tests for future fs.copyFile implementation and adjusted index.js to run it.
2018-12-17 15:56:55 -05:00
Alexei Kozachenko
0eb7066a86
Added mkdtemp method (issue #441 )
...
Added/fixed mkdtemp method (issue 441)
Added/fixed mkdtemp method (issue 441)
Added/fixed mkdtemp method (issue 441)
fixed a typo
Added mkdtemp method description to readme
Unit tests for mkdtemp method added (issue #394 )
Added generateRandom(), randomChars() to shared.js. Corrections in README. Fixes for mkdtemp method
cleaned up mkdtemp()
fixed regex
Fix for failing test (humphd)
2018-12-15 00:39:09 -05:00
David Humphrey
158f6241b6
Fixes from #504 to pass lint, travis
2018-12-15 00:17:43 -05:00
Dan Lin
4a5d8c1222
Fix #456 - add test for fs.write() with undefined path
2018-12-15 00:14:13 -05:00
kwkofler
443b582038
Issue #86 : Added support for Unix Timestamps
...
Co-authored-by: David Humphrey <david.humphrey@senecacollege.ca>
2018-12-14 23:58:42 -05:00
David Humphrey
83bd64fd58
Fix lint issues in #521
2018-12-14 22:18:25 -05:00
imedqq
783e7a9e67
Added newline at end of file
2018-12-14 22:18:25 -05:00
imedqq
2aa6cf2b5f
Added promise-based test cases for rmdir
2018-12-14 22:18:25 -05:00
David Humphrey
acef2c93b0
Update https://github.com/filerjs/filer/pull/485 to master, add tests + fix.
2018-12-14 22:05:51 -05:00
Deepanjali Gerangal
94fd5ba829
Fix#418-updated method
2018-12-14 19:24:55 -05:00
Deepanjali Gerangal
e3a285ae54
fix #418 test for fsPromises.truncate(path[, len]) to test when length is negative
2018-12-14 19:24:19 -05:00
Petr Bouianov
1775c24d37
Fixes issue 75
...
As the array flags were already reflected in the README documentation
and example, this only required a test
2018-12-14 17:31:31 -05:00
David Humphrey
2841b2eba7
Fixes from review
2018-12-12 22:09:41 -05:00
Mera-Gangapersaud
0352dad66c
Corrected Travis CI error for issue 500
2018-12-12 22:09:41 -05:00
David Humphrey
33339b81d7
Fix review issues
2018-12-12 21:38:16 -05:00
Adam
7e941bb304
Update fs.symlink.spec.js
2018-12-12 21:38:16 -05:00
Adam
db237e617b
update fs.symlink.spec.js based on code review
...
white spaces , comments added, Promises.Open used
2018-12-12 21:38:16 -05:00
Pooch11
0a1aa0fecc
Added tests for symlink using promises api
2018-12-12 21:38:16 -05:00
David Humphrey
16e6b3e1c9
Fix review issues
2018-12-12 21:31:27 -05:00
Dragomegak
af3815c54b
Removes Symbolic Link check & Fixing Mixing Callbacks and Promises (Basically the fs.link test though)
2018-12-12 21:27:13 -05:00
Dragomegak
0748951ca8
Changed code to reflect promise syntax
2018-12-12 21:27:13 -05:00
Dragomegak
265f0b1d0d
Added fsPromises.link() tests
2018-12-12 21:27:13 -05:00
David Humphrey
1c450ae8e7
Fix review nits, move contents to earlier scope and reuse.
2018-12-12 21:08:30 -05:00
PopeSpaceous
0395c4beae
Fix issue-447: Added test to append numbers in fs.appendFile function
2018-12-12 21:08:30 -05:00
jagmeetb
1abcb0369b
Fix #431 : add test for fsPromises.unlink
...
add newline at end
implemented suggestions
formatting fixes
2018-12-12 20:59:41 -05:00
David Humphrey
d1dd5fef61
Finishing work in #401
2018-12-10 23:57:10 -05:00