mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
add feature: colored tags
This commit is contained in:
@@ -3,7 +3,7 @@ import renderer from 'react-test-renderer'
|
||||
import TagListItem from 'browser/components/TagListItem'
|
||||
|
||||
it('TagListItem renders correctly', () => {
|
||||
const tagListItem = renderer.create(<TagListItem name='Test' handleClickTagListItem={jest.fn()} />)
|
||||
const tagListItem = renderer.create(<TagListItem name='Test' handleClickTagListItem={jest.fn()} color='#000' />)
|
||||
|
||||
expect(tagListItem.toJSON()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
@@ -14,6 +14,11 @@ exports[`TagListItem renders correctly 1`] = `
|
||||
>
|
||||
<span
|
||||
className="tagList-item-name"
|
||||
style={
|
||||
Object {
|
||||
"color": "#000",
|
||||
}
|
||||
}
|
||||
>
|
||||
# Test
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user