File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ import { StoryFn } from '@storybook/react'
22import { SettingsContext } from '../sections/settings/SettingsContext'
33import { Setting , SettingName } from '../settings/domain/models/Setting'
44import { SettingMother } from '../../tests/component/settings/domain/models/SettingMother'
5+ import { ZipDownloadLimit } from '../settings/domain/models/ZipDownloadLimit'
6+ import { FileSizeUnit } from '../files/domain/models/File'
57
8+ const zipDownloadLimitMock = new ZipDownloadLimit ( 500 , FileSizeUnit . BYTES )
69export const WithSettings = ( Story : StoryFn ) => {
710 // eslint-disable-next-line unused-imports/no-unused-vars
811 function getSettingByName < T > ( name : SettingName ) : Promise < Setting < T > > {
9- return Promise . resolve ( SettingMother . createZipDownloadLimit ( ) as Setting < T > )
12+ return Promise . resolve ( SettingMother . createZipDownloadLimit ( zipDownloadLimitMock ) as Setting < T > )
1013 }
1114
1215 return (
You can’t perform that action at this time.
0 commit comments