Skip to content

Commit

Permalink
Fix Chip tests (#705)
Browse files Browse the repository at this point in the history
* Typescript conversion of Chips completed and working.

* Fixed some comments and typings in tests.

* Fixed Chip tests. No longer allowing imports from index.{js|jsx|ts|tsx} files apparently.
  • Loading branch information
joelmheim authored and vnys committed Nov 13, 2020
1 parent 4d6a288 commit 2159b81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libraries/core-react/src/Chip/Chip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import '@testing-library/jest-dom'
import 'jest-styled-components'
import styled from 'styled-components'
import { add } from '@equinor/eds-icons'
import { Chip } from '.'
import { Avatar, Icon } from '..'
import { Chip } from './Chip'
import { Avatar } from '../Avatar'
import { Icon } from '../Icon'
import { chip as tokens } from './Chip.tokens'

Icon.add({ add })
Expand Down
2 changes: 1 addition & 1 deletion libraries/core-react/src/Chip/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled, { css } from 'styled-components'
import { close } from '@equinor/eds-icons'
import { Icon as Icon_ } from '..'
import { Icon as Icon_ } from '../Icon'
import { chip as tokens } from './Chip.tokens'

Icon_.add({ close })
Expand Down

0 comments on commit 2159b81

Please sign in to comment.