Simplify tests and made compile async

This commit is contained in:
Dolan
2017-12-06 01:32:57 +00:00
parent ebec10e312
commit 5889f20f1e
3 changed files with 7 additions and 25 deletions

View File

@ -22,10 +22,10 @@ export class ExpressPacker implements IPacker {
});
}
public pack(name: string): void {
public async pack(name: string): Promise<void> {
name = name.replace(/.docx$/, "");
this.res.attachment(`${name}.docx`);
this.packer.compile(this.res);
await this.packer.compile(this.res);
}
}