-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ui: update fetch-mock #7857
ui: update fetch-mock #7857
Conversation
@@ -27,14 +27,14 @@ describe("<EventList>", function() { | |||
}); | |||
|
|||
describe("refresh", function() { | |||
it("refreshes events when mounted.", function () { | |||
it("refreshes events when mounted.", () => { |
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.
You didn't replace all the describe
functions.
Why don't they need a proper closures anymore?
We should get rid of the Review status: 0 of 15 files reviewed at latest revision, 6 unresolved discussions, all commit checks successful. ui/app/redux/ui.ts, line 31 [r2] (raw file):
We should probably stop using New code would be:
ui/app/util/object-assign.ts, line 1 [r2] (raw file):
We should add a comment at the top explaining why this is necessary, since none of our code will use it directly if we remove it from ui/app/util/object-assign.ts, line 7 [r2] (raw file):
Might want to mention where you got the polyfill from. I'm guessing here? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill Comments from Reviewable |
Indeed, arrow functions are a bad idea with mocha: mochajs/mocha#1969. PTAL. Review status: 0 of 15 files reviewed at latest revision, 6 unresolved discussions, all commit checks successful. ui/app/containers/events.spec.tsx, line 30 [r2] (raw file):
|
Review status: 0 of 16 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. ui/app/util/fetch-mock.ts, line 8 [r2] (raw file):
|
Review status: 0 of 16 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. Comments from Reviewable |
This change is