fixing tests

This commit is contained in:
Dolan Miu
2016-05-01 22:24:20 +01:00
parent 3f8d23662e
commit 879ac13863
9 changed files with 35 additions and 30 deletions

View File

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

View File

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