Use context in prep xml
This commit is contained in:
@ -2,6 +2,7 @@ import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "export/formatter";
|
||||
import { EMPTY_OBJECT, XmlComponent } from "./";
|
||||
import { IContext } from "./base";
|
||||
|
||||
class TestComponent extends XmlComponent {}
|
||||
|
||||
@ -27,7 +28,8 @@ describe("XmlComponent", () => {
|
||||
child.delete();
|
||||
xmlComponent.addChildElement(child);
|
||||
|
||||
const xml = xmlComponent.prepForXml();
|
||||
// tslint:disable-next-line: no-object-literal-type-assertion
|
||||
const xml = xmlComponent.prepForXml({} as IContext);
|
||||
|
||||
if (!xml) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user