Skip to content

Instantly share code, notes, and snippets.

@sminutoli
Last active November 10, 2016 19:43
Show Gist options
  • Save sminutoli/e449b3d1cc198e2a6b66a9f7162d135d to your computer and use it in GitHub Desktop.
Save sminutoli/e449b3d1cc198e2a6b66a9f7162d135d to your computer and use it in GitHub Desktop.
TDD Action Creator paso 1
//comienza el archivo vacío
import { describe, it } from 'mocha';
import expect from 'expect';
import { actionTypes, transactionSuccess } from './actionCreator';
describe('ItemTransactionActions.actionTypes', () => {
it('should expose TRANSACTION_SUCCESS', () => {
const actual = actionTypes.TRANSACTION_SUCCESS;
expect(actual).toExist();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment