1
0
Fork 0

fix(core): Update tests to snippet changes

This commit is contained in:
joostdecock 2023-09-06 09:27:04 +02:00
parent 61a674f517
commit 2d53638779

View file

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