message: test(plugin): color
diff: @@ -8,6 +8,7 @@ describe('styli-plugin-color', () => {
  colors: {
  red: 'blue',
  colorRed: true,
  + colorBrand: '#000'
  },
  } as any,
  })
  @@ -20,6 +21,7 @@ describe('styli-plugin-color', () => {
  expect(isMatch!('blue')).toEqual(false)
  expect(isMatch!('color')).toEqual(true)
  expect(isMatch!('colorRed')).toEqual(true)
  + expect(isMatch!('colorBrand')).toEqual(true)
  })
  describe('onAtomStyleCreate', () => {
  @@ -106,5 +108,26 @@ describe('styli-plugin-color', () => {
  }
  expect(onAtomStyleCreate!(atom, sheet)).toMatchObject(newAtom)
  })
  +
  + // <View colorBrand-T10></View>
  + it('colorBrand', () => {
  + const atom = {
  + propKey: 'colorBrand-T10',
  + propValue: true,
  + style: {},
  + type: 'style' as any,
  + key: 'colorBrand-T10',
  + value: true,
  + }
  + const newAtom = {
  + propKey: 'colorBrand-T10',
  + propValue: true,
  + type: 'style',
  + key: 'colorBrand-T10',
  + value: true,
  + style: { color: 'rgba(0,0,0,0.9)' },
  + }
  + expect(onAtomStyleCreate!(atom, sheet)).toMatchObject(newAtom)
  + })
  })
  })
  