1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +02:00

fix(lint): make Lint happy

This commit is contained in:
Corinne Krych 2018-02-09 09:41:58 +01:00
parent 817ae362af
commit 9feee9acb7

View File

@ -1,38 +1,36 @@
import React from 'react'; // import React from 'react';
import ArchiveList from '../archive-list-component'; // import ArchiveList from '../archive-list-component';
import renderer from 'react-test-renderer'; // import renderer from 'react-test-renderer';
jest.mock('react-mdl'); jest.mock('react-mdl');
const archive = [ // const archive = [
{ // {
name: 'adin-pay-confirm-disabled', // name: 'adin-pay-confirm-disabled',
description: 'Disables the confirm-functionality from API', // description: 'Disables the confirm-functionality from API',
enabled: false, // enabled: false,
strategies: [{ name: 'default', parameters: {} }], // strategies: [{ name: 'default', parameters: {} }],
createdAt: '2016-10-25T15:38:28.573Z', // createdAt: '2016-10-25T15:38:28.573Z',
reviveName: 'adin-pay-confirm-disabled', // reviveName: 'adin-pay-confirm-disabled',
}, // },
{ // {
name: 'adin-pay-platform-sch-payment', // name: 'adin-pay-platform-sch-payment',
description: 'Enables use of schibsted payment from order-payment-management', // description: 'Enables use of schibsted payment from order-payment-management',
enabled: true, // enabled: true,
strategies: [{ name: 'default', parameters: {} }], // strategies: [{ name: 'default', parameters: {} }],
createdAt: '2016-08-03T12:41:35.631Z', // createdAt: '2016-08-03T12:41:35.631Z',
reviveName: 'adin-pay-platform-sch-payment', // reviveName: 'adin-pay-platform-sch-payment',
}, // },
]; // ];
// todo: fix snapshot test // todo: fix snapshot test
test('renders correctly with no archived toggles', () => { test('renders correctly with no archived toggles', () => {
//const tree = renderer.create(<ArchiveList fetchArchive={jest.fn()} archive={[]} />).toJSON(); // const tree = renderer.create(<ArchiveList fetchArchive={jest.fn()} archive={[]} />).toJSON();
// expect(tree).toMatchSnapshot();
//expect(tree).toMatchSnapshot();
}); });
test('renders correctly with archived toggles', () => { test('renders correctly with archived toggles', () => {
//const tree = renderer.create(<ArchiveList fetchArchive={jest.fn()} archive={archive} />).toJSON(); // const tree = renderer.create(<ArchiveList fetchArchive={jest.fn()} archive={archive} />).toJSON();
// expect(tree).toMatchSnapshot();
//expect(tree).toMatchSnapshot();
}); });