fix(plugin-annotations): Don't load core plugins in tests
This commit is contained in:
parent
6a7cc334ba
commit
31e7b50ba1
14 changed files with 96 additions and 114 deletions
|
@ -26,7 +26,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#button"')
|
||||
})
|
||||
|
@ -42,7 +42,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#buttonhole"')
|
||||
})
|
||||
|
@ -58,7 +58,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#buttonhole-start"')
|
||||
})
|
||||
|
@ -74,7 +74,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#buttonhole-end"')
|
||||
})
|
||||
|
@ -90,7 +90,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#snap-stud"')
|
||||
})
|
||||
|
@ -106,7 +106,7 @@ describe('Buttons Plugin Test', () => {
|
|||
},
|
||||
plugins: [annotationsPlugin],
|
||||
}
|
||||
const Pattern = new Design({ parts: [part] })
|
||||
const Pattern = new Design({ parts: [part], noCorePlugins: true })
|
||||
const svg = new Pattern().draft().render()
|
||||
expect(svg).to.contain('<use x="10" y="20" xlink:href="#snap-socket"')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue