-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(server): add callback support for invalidate #1900
feat(server): add callback support for invalidate #1900
Conversation
ebc9970
to
8d58882
Compare
8d58882
to
86871e1
Compare
test/Server.test.js
Outdated
@@ -74,6 +75,51 @@ describe('Server', () => { | |||
}); | |||
}); | |||
|
|||
describe('Testing callback functions on calling invalidate without callback', () => { | |||
it('should be `noop` (the default callback function)', () => { |
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.
Please use done because Server.test.js has already used done
and can reduce code length.
After all, resolve
is called in server.close
in the callback, so you don't have to make a Promise.
Codecov Report
@@ Coverage Diff @@
## master #1900 +/- ##
==========================================
+ Coverage 91.13% 91.49% +0.35%
==========================================
Files 18 18
Lines 835 835
Branches 262 262
==========================================
+ Hits 761 764 +3
+ Misses 70 68 -2
+ Partials 4 3 -1
Continue to review full report at Codecov.
|
/cc @hiroppy |
Codecov Report
@@ Coverage Diff @@
## master #1900 +/- ##
==========================================
+ Coverage 91.13% 91.49% +0.35%
==========================================
Files 18 18
Lines 835 835
Branches 262 262
==========================================
+ Hits 761 764 +3
+ Misses 70 68 -2
+ Partials 4 3 -1
Continue to review full report at Codecov.
|
Thanks, good job! |
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
add tests for this PR : #1590
Breaking Changes
no
Additional Info