1
0
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:
HarlanLuo
2018-12-27 21:36:20 +08:00
parent 13c2f471aa
commit 3e645db324
13 changed files with 205 additions and 13 deletions

View File

@@ -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()
})

View File

@@ -14,6 +14,11 @@ exports[`TagListItem renders correctly 1`] = `
>
<span
className="tagList-item-name"
style={
Object {
"color": "#000",
}
}
>
# Test
<span