forked from hql287/Manta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to duplicate an invoice. (hql287#272)
* Added duplicateInvoice action * Added & updated tests
- Loading branch information
Showing
9 changed files
with
164 additions
and
38 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,18 @@ it('saveInvoice should create INVOICE_SAVE action', () => { | |
}); | ||
}); | ||
|
||
it('duplicateInvoice should create INVOICE_DUPLICATE action', () => { | ||
const invoiceData = { | ||
_id: 'jon_snow', | ||
fulname: 'Jon Snow', | ||
email: '[email protected]', | ||
}; | ||
expect(actions.duplicateInvoice(invoiceData)).toEqual({ | ||
type: ACTION_TYPES.INVOICE_DUPLICATE, | ||
payload: invoiceData, | ||
}); | ||
}); | ||
|
||
it('newInvoiceFromContact should create INVOICE_NEW_FROM_CONTACT action', () => { | ||
const contactData = { | ||
_id: 'jon_snow', | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.