message: test(plugin-svg): improve test
diff: +import { setConfig } from '@fower/core'
  import { Parser } from '@fower/parser'
  +import { presetWeb } from '@fower/preset-web'
  import { Atom } from '@fower/atom'
  -import plugin from '.'
  +import plugin from './index'
  const { isMatch, handleAtom } = plugin()
  -const parser = {} as Parser
  +
  +setConfig(presetWeb)
  +const parser = new Parser({})
  test('isMatch', () => {
  expect(isMatch!('stroke')).toEqual(true)
  expect(isMatch!('fillCurrent')).toEqual(true)
  expect(isMatch!('strokeCurrent')).toEqual(true)
  expect(isMatch!('fillNone')).toEqual(true)
  + expect(isMatch!('fillRed200')).toEqual(true)
  + expect(isMatch!('fillFoo200')).toBeFalsy()
  + expect(isMatch!('fooooo')).toBeFalsy()
  + expect(isMatch!(undefined as any)).toBeFalsy()
  })
  -test('stroke', () => {
  +test('stroke widh number value', () => {
  const atom = handleAtom!(
  new Atom({
  propKey: 'stroke',
  @@ -23,6 +31,17 @@ test('stroke', () => {
  expect(atom.style.strokeWidth).toEqual('1')
  })
  +test('stroke width string value', () => {
  + const atom = handleAtom!(
  + new Atom({
  + propKey: 'stroke',
  + propValue: 'none',
  + }),
  + parser,
  + )
  + expect(atom.style.stroke).toEqual('none')
  +})
  +
  test('strokeCurrent', () => {
  const atom = handleAtom!(
  new Atom({
  @@ -55,3 +74,15 @@ test('fillNone', () => {
  )
  expect(atom.style.fill).toEqual('none')
  })
  +
  +test('fillRed200', () => {
  + const atom = handleAtom!(
  + new Atom({
  + propKey: 'fillRed200',
  + propValue: true,
  + }),
  + parser,
  + )
  + expect(atom.id).toEqual('fillRed200')
  + expect(atom.style.fill).toEqual('red200')
  +})
  