mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-17 04:53:49 +00:00
Fixed tests
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { ShortUrlsComponent as ShortUrls } from '../../src/short-urls/ShortUrls';
|
||||
import shortUrlsCreator from '../../src/short-urls/ShortUrls';
|
||||
import Paginator from '../../src/short-urls/Paginator';
|
||||
import ShortUrlsList from '../../src/short-urls/ShortUrlsList';
|
||||
import SearchBar from '../../src/short-urls/SearchBar';
|
||||
|
||||
describe('<ShortUrlsList />', () => {
|
||||
describe('<ShortUrls />', () => {
|
||||
let wrapper;
|
||||
const SearchBar = () => '';
|
||||
const ShortUrlsList = () => '';
|
||||
|
||||
beforeEach(() => {
|
||||
const params = {
|
||||
@@ -14,6 +14,8 @@ describe('<ShortUrlsList />', () => {
|
||||
page: '1',
|
||||
};
|
||||
|
||||
const ShortUrls = shortUrlsCreator(SearchBar, ShortUrlsList);
|
||||
|
||||
wrapper = shallow(<ShortUrls match={{ params }} shortUrlsList={{ data: [] }} />);
|
||||
});
|
||||
afterEach(() => wrapper.unmount());
|
||||
|
||||
Reference in New Issue
Block a user