@wix/design-system
Version:
@wix/design-system
34 lines • 1.01 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/AudioPlayer/test/AudioPlayer.visual.jsx",
_this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import AudioPlayer from '../AudioPlayer';
var commonProps = {};
var tests = [{
describe: 'sanity',
its: [{
it: 'default',
props: {
src: 'example.mp3'
}
}]
}];
tests.forEach(function (_ref) {
var describe = _ref.describe,
its = _ref.its;
its.forEach(function (_ref2) {
var it = _ref2.it,
props = _ref2.props;
storiesOf("".concat(AudioPlayer.displayName).concat(describe ? '/' + describe : ''), module).add(it, function () {
return /*#__PURE__*/React.createElement(AudioPlayer, _extends({}, commonProps, props, {
__self: _this,
__source: {
fileName: _jsxFileName,
lineNumber: 26,
columnNumber: 21
}
}));
});
});
});