mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
21 lines
598 B
JavaScript
21 lines
598 B
JavaScript
import React from 'react';
|
|
import { fakeIntl, renderShallow } from '../../util/test-helpers';
|
|
import { EditListingPageComponent } from './EditListingPage';
|
|
|
|
describe('EditListingPageComponent', () => {
|
|
it('matches snapshot', () => {
|
|
const tree = renderShallow(
|
|
<EditListingPageComponent
|
|
data={{ entities: {} }}
|
|
images={[]}
|
|
intl={fakeIntl}
|
|
onCreateListing={v => v}
|
|
onLoadListing={v => v}
|
|
onImageUpload={v => v}
|
|
page={{ imageOrder: [], images: {} }}
|
|
type="new"
|
|
/>,
|
|
);
|
|
expect(tree).toMatchSnapshot();
|
|
});
|
|
});
|