Skip to content

Instantly share code, notes, and snippets.

@dcmwong
Created July 19, 2018 15:58
Show Gist options
  • Save dcmwong/b3658f1b41c077da3094928af6485a79 to your computer and use it in GitHub Desktop.
Save dcmwong/b3658f1b41c077da3094928af6485a79 to your computer and use it in GitHub Desktop.
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