mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-19 19:31:19 +00:00
- Refactoring without tests makes it riskier - Move some tests from resolver to middleware unit tests to live closer to where the validation happens, remove duplicate tests - DRY out code
29 lines
951 B
JavaScript
29 lines
951 B
JavaScript
import { storiesOf } from '@storybook/vue'
|
|
import { withA11y } from '@storybook/addon-a11y'
|
|
import FiledTable from '~/components/_new/features/FiledTable/FiledTable'
|
|
import helpers from '~/storybook/helpers'
|
|
import { reports } from '~/components/_new/features/ReportsTable/ReportsTable.story.js'
|
|
|
|
const filed = reports.map(report => report.filed)
|
|
|
|
storiesOf('FiledTable', module)
|
|
.addDecorator(withA11y)
|
|
.addDecorator(helpers.layout)
|
|
.add('with filed reports', () => ({
|
|
components: { FiledTable },
|
|
store: helpers.store,
|
|
data: () => ({
|
|
filed,
|
|
}),
|
|
template: `<table>
|
|
<tbody v-for="file in filed">
|
|
<tr>
|
|
<td class="ds-table-col filed-table" colspan="4">
|
|
<ds-space margin-bottom="base" />
|
|
<filed-table :filed="file" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>`,
|
|
}))
|