-
Notifications
You must be signed in to change notification settings - Fork 280
Rewrites simple modules to TypeScript #1545
Conversation
478d7d7
to
c988cff
Compare
9e87b4c
to
3c50cf6
Compare
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.
I don't like the RESTMethod
name, otherwise seems okay.
import { expect } from 'chai'; | ||
import sortTransactions from '../../lib/sortTransactions'; | ||
import { Transaction, RESTMethod } from '../../lib/general'; | ||
|
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.
I don't see a similar test written in JS being removed. Does it mean you want to keep it to be sure nothing got broken, or that it doesn't exist and this part isn't tested?
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.
I couldn't find any existing test that would cover sortTransactions
. To my knowledge this adds the missing unit test, so there is no JavaScript predecessor to remove. Please, point me if you know where this behavior may be tested already. Thanks.
If you add two methods, you can close this one #267 |
3c50cf6
to
bdd0c21
Compare
@honzajavorek thanks for the review. Are you speaking about adding |
They are used with proxies. |
@honzajavorek I think we can cover LINK/UNLINK separately. Thanks! |
🚀 Why this change?
sortTransactions
module📝 Related issues and Pull Requests
✅ What didn't I forget?
npm run lint
sortTransactions
module