fixing tests
This commit is contained in:
@ -5,8 +5,9 @@ export class Formatter {
|
||||
|
||||
format(input: any): Object {
|
||||
this.replaceKeys(input);
|
||||
input.clearVariables();
|
||||
var newJson = this.clense(input);
|
||||
|
||||
console.log(JSON.stringify(newJson, null, " "));
|
||||
return newJson;
|
||||
}
|
||||
|
||||
@ -26,7 +27,7 @@ export class Formatter {
|
||||
//console.log(value);
|
||||
//parent.replaceKey();
|
||||
});
|
||||
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,7 @@ export abstract class Packer {
|
||||
prefix: "root"
|
||||
});*/
|
||||
var xmlDocument = xml(this.formatter.format(this.document));
|
||||
console.log(xmlDocument);
|
||||
var xmlStyle = xml(this.style);
|
||||
var xmlProperties = xml(this.formatter.format(this.properties), { declaration: { standalone: 'yes', encoding: 'UTF-8' } });
|
||||
|
||||
|
Reference in New Issue
Block a user