fix(core): Update tests to snippet changes
This commit is contained in:
parent
61a674f517
commit
2d53638779
1 changed files with 3 additions and 9 deletions
|
@ -199,7 +199,7 @@ describe('Svg', () => {
|
|||
|
||||
it('Should render an Svg snippet', () => {
|
||||
const pattern = getPattern({}, ({ snippets, Snippet, Point, part }) => {
|
||||
snippets.test = new Snippet('test', new Point(20, 20), 'This is a snippet')
|
||||
snippets.test = new Snippet('test', new Point(20, 20))
|
||||
|
||||
return part
|
||||
})
|
||||
|
@ -210,10 +210,7 @@ describe('Svg', () => {
|
|||
|
||||
it('Should render a rotated Svg snippet', () => {
|
||||
const pattern = getPattern({}, ({ snippets, Snippet, Point, part }) => {
|
||||
snippets.test = new Snippet('test', new Point(20, 20), 'This is a snippet').attr(
|
||||
'data-rotate',
|
||||
90
|
||||
)
|
||||
snippets.test = new Snippet('test', new Point(20, 20)).attr('data-rotate', 90)
|
||||
|
||||
return part
|
||||
})
|
||||
|
@ -231,10 +228,7 @@ describe('Svg', () => {
|
|||
|
||||
it('Should scale an Svg snippet', () => {
|
||||
const pattern = getPattern({}, ({ snippets, Snippet, Point, part }) => {
|
||||
snippets.test = new Snippet('test', new Point(20, 20), 'This is a snippet').attr(
|
||||
'data-scale',
|
||||
2
|
||||
)
|
||||
snippets.test = new Snippet('test', new Point(20, 20)).attr('data-scale', 2)
|
||||
|
||||
return part
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue