-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test for fs.open with wx flag for existing file #745
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cdrani thanks for this! I checked what node does, and I see it returns an EEXIST
vs. ENOENT
.
I think we're probably doing the wrong there here: https://github.com/filerjs/filer/blob/master/src/filesystem/implementation.js#L623, and should be using new Errors.EEXIST(...)
.
Do you want to change what we're doing in implementation
and update this test?
Sure, no problem. I assume I should run |
The test is failing, expecting 'EEXIST' to equal 'ENOENT'. |
You can just run Also, can you push your changes up again and I'll review again, and help fix anything. |
Yes, I made all the changes. Did not notice that somehow that fs.open.spec was placed in readonly mode by vim. 😅 . Tests are passing, will push now. |
Codecov Report
@@ Coverage Diff @@
## master #745 +/- ##
==========================================
+ Coverage 86.65% 86.71% +0.05%
==========================================
Files 16 16
Lines 1739 1739
==========================================
+ Hits 1507 1508 +1
+ Misses 232 231 -1
Continue to review full report at Codecov.
|
Concerning this
I noticed that I have ChromeHeadless, but not FirefoxHeadless. How are these setup? Why do I have one binary and not the other? |
@cdrani do you have Firefox installed on your machine? That should be enough to make this work. At any rate, this looks great, nice work. I'm going to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent.
Oh, I use the developer version. That might be the issue. Thanks for the help! |
Fixes #623