Skip to content

Commit

Permalink
refactor(ZNTA-2379) update frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kgough committed Mar 26, 2018
1 parent 3e7fdaf commit 0e3dcd9
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -3,9 +3,10 @@
import React from 'react'
import * as ReactDOMServer from 'react-dom/server'
import DraggableVersionPanels, {Item, DragHandle, tooltipSort} from '.'
import {Button, ListGroup, ListGroupItem, OverlayTrigger} from 'react-bootstrap'
import {ListGroup, ListGroupItem, OverlayTrigger} from 'react-bootstrap'
import {Icon, LockIcon} from '../../components'

import Button from 'grommet/components/Button'
import Close from 'grommet/components/icons/base/Close'
const callback = function (_e) {}

describe('DraggableVersionPanels', () => {
Expand All @@ -28,11 +29,10 @@ describe('DraggableVersionPanels', () => {
{'ver1'} <span className='u-textMuted'> {'meikai1'}
</span> <LockIcon status={'ACTIVE'} />
{" "}
<Button bsSize='xsmall' className='close rm-version-btn'
onClick={callback}>
<Icon name='cross' className='n2' parentClassName='iconCross'
title='remove version'/>
</Button>
<Button icon={<Close size='xsmall' />}
label='Clear selection'
onClick={callback}
plain className='close rm-version-btn' />
</ListGroupItem>
)
expect(actual).toEqual(expected)
Expand Down

0 comments on commit 0e3dcd9

Please sign in to comment.