mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 19:16:10 +00:00
303e44abb3
* [WIP] Start port of V3 Modal * allow lambda functions in React Components * lint code * add null case for modalRef * fix action test * reduce onboard slide boilerplate * delete images and componentize OnboardSlide * comment out info onboarding message * fix merge conflict * fix prettier error * revert tslint file * fix type in modal * add translations to onboard modal * add in images, fix stlyes
33 lines
916 B
TypeScript
33 lines
916 B
TypeScript
import * as actions from '../../common/actions/onboardStatus';
|
|
|
|
describe('onboardStatus actions', () => {
|
|
it('should create an action to start onboard session', () => {
|
|
const expectedAction = {
|
|
type: 'START_ONBOARD_SESSION'
|
|
};
|
|
expect(actions.startOnboardSession()).toEqual(expectedAction);
|
|
});
|
|
|
|
it('should create an action to resume slide', () => {
|
|
const expectedAction = {
|
|
type: 'RESUME_SLIDE',
|
|
slideNumber: 3
|
|
};
|
|
expect(actions.resumeSlide(3)).toEqual(expectedAction);
|
|
});
|
|
|
|
it('should create an action to decrement slide', () => {
|
|
const expectedAction = {
|
|
type: 'DECREMENT_SLIDE'
|
|
};
|
|
expect(actions.decrementSlide()).toEqual(expectedAction);
|
|
});
|
|
|
|
it('should create an action to increment slide', () => {
|
|
const expectedAction = {
|
|
type: 'INCREMENT_SLIDE'
|
|
};
|
|
expect(actions.incrementSlide()).toEqual(expectedAction);
|
|
});
|
|
});
|