Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Apr 3, 2019
1 parent 1900f30 commit 91cf238
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/index.test.js
Expand Up @@ -36,6 +36,5 @@ test('replace style tag', t => {
sync: true
})

t.true(sfc.component.includes('/lib/StyleComponent.js'))
t.true(sfc.component.includes('<svg2vue-style>'))
t.snapshot(sfc.component)
})
9 changes: 8 additions & 1 deletion test/snapshots/index.test.js.md
Expand Up @@ -33,4 +33,11 @@ Generated by [AVA](https://ava.li).
</svg>␊
</template>`,
}

## replace style tag

> Snapshot 1
`<template>␊
<svg v-on="$listeners"><component is="style">svg {width:20px;}</component></svg>␊
</template>`
Binary file modified test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit 91cf238

Please sign in to comment.