-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
/
parameters-as-var.output.snapshot
48 lines (40 loc) · 1.31 KB
/
parameters-as-var.output.snapshot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`storiesof-to-csf transforms correctly using "parameters-as-var.input.js" data 1`] = `
"/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { specs, urls } from './LiveView.stories';
import { ignoredRegions } from './IgnoredRegions.stories';
export { specs, urls, ignoredRegions };
const figure = 'http://via.placeholder.com/400x350';
const captureImageSize = { width: 300, height: 300 };
const CHROMATIC_DELAY = { chromatic: { delay: 500 } };
export default {
title: 'Webapp components/Canvas',
excludeStories: ['specs', 'urls', 'ignoredRegions'],
};
export const InteractiveUrlWInteractiveMode = () => (
<Canvas
interactiveUrl={urls.storybook52}
interactiveMode=\\"interactive\\"
figure={figure}
captureImageSize={captureImageSize}
spec={specs.basic}
showIgnoredRegions={false}
/>
);
InteractiveUrlWInteractiveMode.story = {
name: 'interactiveUrl w/ interactiveMode',
parameters: CHROMATIC_DELAY,
};
export const WideShortImage = () => (
<Canvas
figure=\\"http://via.placeholder.com/900x350\\"
captureImageSize={{ width: 900, height: 350 }}
showIgnoredRegions={false}
/>
);
WideShortImage.story = {
name: 'wide short image',
parameters: { chromatic: { viewports: [600, 1200] } },
};"
`;