Created
July 19, 2018 15:58
-
-
Save dcmwong/b3658f1b41c077da3094928af6485a79 to your computer and use it in GitHub Desktop.
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 getAction from './'; | |
test('action -> creates Customer', () => { | |
const createCustomerAction = getAction('addCustomer'); | |
expect(createCustomerAction).toEqual('/actions/AddCustomer'); | |
}); | |
test('action -> edit Customer', () => { | |
const editCustomerAction = getAction('editCustomer'); | |
expect(editCustomerAction).toEqual('/actions/EditCustomer'); | |
}); | |
test('action -> deletes Customer', () => { | |
const deleteCustomerAction = getAction('deleteCustomer'); | |
expect(deleteCustomerAction).toEqual('/actions/DeleteCustomer'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment