| 1290 | it('should show less from a source and set it back to Auto', async () => { |
| 1291 | const sent: (string | null)[] = []; |
| 1292 | const setSourceMode = (mode: string | null): MockedGraphQLResponse => ({ |
| 1293 | request: { |
| 1294 | query: SET_FEED_SOURCE_MODE_MUTATION, |
| 1295 | variables: { sourceId: 'echojs', mode }, |
| 1296 | }, |
| 1297 | result: () => { |
| 1298 | sent.push(mode); |
| 1299 | return { data: { setFeedSourceMode: { _: true } } }; |
| 1300 | }, |
| 1301 | }); |
| 1302 | // The controls come back from the API after each change. |
| 1303 | const controlsAfter = ( |
| 1304 | sources: { source: { id: string }; mode: string }[], |