mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
test(guided-tour): added reducer test for set_skipped
This commit is contained in:
parent
754488c25a
commit
eed60c28f4
@ -59,6 +59,23 @@ describe('Admin | Components | GuidedTour | reducer', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('SET_SKIPPED', () => {
|
||||
it('should skip the guidedTourState', () => {
|
||||
const state = { ...initialState };
|
||||
|
||||
const skipped = true;
|
||||
|
||||
const action = {
|
||||
type: 'SET_SKIPPED',
|
||||
value: skipped,
|
||||
};
|
||||
|
||||
const updatedState = reducer(state, action);
|
||||
|
||||
expect(updatedState.isSkipped).toEqual(skipped);
|
||||
});
|
||||
});
|
||||
|
||||
describe('SET_GUIDED_TOUR_VISIBILITY', () => {
|
||||
it('should update isGuidedTourVisible', () => {
|
||||
const state = { ...initialState };
|
||||
|
Loading…
x
Reference in New Issue
Block a user