Add a test helper to build the svg document
This commit is contained in:
@@ -27,7 +27,7 @@ describe('a trooper', () => {
|
||||
beforeEach(async () => {
|
||||
await mockResponse(driver, `/assets/images/${scenario}`, fixture, (document) => {
|
||||
placeCounter(document, createTroopCounter(), { x: 1, y: 1 });
|
||||
return `<?xml version="1.0" standalone="yes"?>\n` + document.querySelector('svg').outerHTML;
|
||||
return svgDocument(document);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -73,7 +73,7 @@ describe('a selected trooper', () => {
|
||||
beforeEach(async () => {
|
||||
await mockResponse(driver, `/assets/images/${scenario}`, fixture, (document) => {
|
||||
placeCounter(document, selectCounter(createTroopCounter()), { x: 1, y: 1 });
|
||||
return `<?xml version="1.0" standalone="yes"?>\n` + document.querySelector('svg').outerHTML;
|
||||
return svgDocument(document);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user