@nlabs/arkhamjs-example-flow-react
Version:
ArkhamJS React Flow Example App
24 lines (18 loc) • 566 B
JavaScript
import {AppConstants} from '../../constants/AppConstants';
import {updateContent} from './AppActions';
describe('AppActions', () => {
const content: string = 'test';
describe('updateContent', () => {
let action;
beforeAll(async () => {
// Method
action = await updateContent(content);
});
it('should dispatch AppConstants.UPDATE_CONTENT', () => {
expect(action.type).toBe(AppConstants.UPDATE_CONTENT);
});
it('should contain content in action', () => {
expect(action.content).toBe(content);
});
});
});