Created
November 29, 2017 21:01
-
-
Save ndelitski/7ac246df6547748af323216ceecafc44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const createCase = (inProps, outProps) => () => { | |
const initialProps = merge({ | |
hasFoundationRole: false, | |
status: SECTION_STATUS.needClarification, | |
finished: true, | |
permissions: [ | |
SECTION_PERMISSION.readStatus, | |
SECTION_PERMISSION.sendClarification, | |
], | |
}, inProps) | |
expect(assocStatusLabel(initialProps)).toEqual(merge({ | |
initialProps, | |
outProps, | |
}) | |
} | |
it(`should be "Marked as resolved" for Applicant and if after editing Section has status: ${SECTION_STATUS.needClarification}`, | |
createCase({ | |
hasFoundationRole: false, | |
status: SECTION_STATUS.needClarification, | |
}, { | |
label: 'Marked as resolved', | |
}) | |
) | |
it(`should be "Marked as resolved" for Applicant and if after editing Section has status: ${SECTION_STATUS.needClarification}`, | |
createCase({ | |
hasFoundationRole: false, | |
status: SECTION_STATUS.needClarification, | |
}, { | |
label: 'Marked as resolved', | |
}) | |
) | |
it(`should be "Marked as resolved" for Applicant and if after editing Section has status: ${SECTION_STATUS.needClarification}`, | |
createCase({ | |
hasFoundationRole: false, | |
status: SECTION_STATUS.needClarification, | |
}, { | |
label: 'Marked as resolved', | |
}) | |
) |
This file contains hidden or 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
it(`should be "Marked as resolved" for Applicant and if after editing Section has status: ${SECTION_STATUS.needClarification}`, () => { | |
const initialProps = { | |
hasFoundationRole: false, | |
status: SECTION_STATUS.needClarification, | |
finished: true, | |
permissions: [ | |
SECTION_PERMISSION.readStatus, | |
SECTION_PERMISSION.sendClarification, | |
], | |
} | |
expect(assocStatusLabel(initialProps)).toEqual({ | |
...initialProps, | |
label: 'Marked as resolved', | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment