This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
["f", "Show next/latest diffs", "setProposedRevRanges()"], | |
[null, "Next unreviewed file", "nextUnreviewedFile()"], | |
[null, "Previous unreviewed file", "prevUnreviewedFile()"], | |
[".", "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"], | |
[",", "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"], | |
[null, "Next changed file", "nextChangedFile()"], | |
[null, "Previous changed file", "prevChangedFile()"], | |
[null, "Next visible file", "nextVisibleFile()"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import moment from 'moment'; | |
import diff from 'jest-diff'; | |
// see: https://facebook.github.io/jest/docs/expect.html#expectextendmatchers | |
expect.extend({ | |
toEqualDate(unparsedReceived, unparsedExpected) { | |
const received = moment(unparsedReceived); | |
const expected = moment(unparsedExpected); | |
const receivedAsString = received.format('L'); |