Sha256: 908b0d321e66a2949f4ec0cec06eff858437905a30a78f1d458ab58c829b9130
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test'; import { selectStatisticsPage, selectStatisticsMetadata, selectStatisticsHasMetadata, selectStatisticsIsLoading, selectStatisticsMessage, selectStatisticsHasError, } from '../StatisticsPageSelectors'; import { statisticsProps } from '../StatisticsPage.fixtures'; const state = { foremanStatistics: { statisticsPage: { ...statisticsProps, }, }, }; const fixtures = { 'should return StatisticsPage': () => selectStatisticsPage(state), 'should return StatisticsHasMetadata': () => selectStatisticsHasMetadata(state), 'should return StatisticsPage statisticsMeta': () => selectStatisticsMetadata(state), 'should return StatisticsPage isLoading': () => selectStatisticsIsLoading(state), 'should return StatisticsPage Message': () => selectStatisticsMessage(state), 'should return StatisticsPage hasError': () => selectStatisticsHasError(state), }; describe('StatisticsPage selectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
7 entries across 7 versions & 1 rubygems