(config: Config)
| 34 | } |
| 35 | |
| 36 | const selectFirst = (config: Config) => { |
| 37 | appStore.setState({ |
| 38 | ...appStore.getState(), |
| 39 | config, |
| 40 | selectedItem: appStore.getState().state.data.content[0], |
| 41 | state: walkAppState( |
| 42 | { |
| 43 | ...appStore.getState().state, |
| 44 | ui: { |
| 45 | ...appStore.getState().state.ui, |
| 46 | itemSelector: { |
| 47 | index: 0, |
| 48 | }, |
| 49 | }, |
| 50 | }, |
| 51 | config |
| 52 | ), |
| 53 | }); |
| 54 | }; |
| 55 | |
| 56 | describe("fields slice", () => { |
| 57 | beforeEach(() => { |
no test coverage detected