Made project Prettier compliant

This commit is contained in:
Dolan
2018-01-23 01:33:12 +00:00
parent f2027230a0
commit e93d6799fd
101 changed files with 1198 additions and 1207 deletions

View File

@ -76,6 +76,5 @@ export class Compiler {
resolve();
});
});
}
}

View File

@ -14,7 +14,10 @@ export class ExpressPacker implements IPacker {
this.res = res;
this.res.on("close", () => {
return res.status(200).send("OK").end();
return res
.status(200)
.send("OK")
.end();
});
}

View File

@ -24,7 +24,7 @@ describe("LocalPacker", () => {
});
describe("#pack()", () => {
it("should create a standard docx file", async function () {
it("should create a standard docx file", async function() {
this.timeout(99999999);
await packer.pack("build/tests/test");
fs.statSync("build/tests/test.docx");
@ -32,7 +32,7 @@ describe("LocalPacker", () => {
});
describe("#packPdf", () => {
it("should create a standard PDF file", async function () {
it("should create a standard PDF file", async function() {
this.timeout(99999999);
await packer.packPdf("build/tests/pdf-test");

View File

@ -43,6 +43,5 @@ export class LocalPacker implements IPacker {
resolve();
});
});
}
}

View File

@ -13,21 +13,22 @@ export class PdfConvertWrapper {
url: "http://mirror1.convertonlinefree.com",
encoding: null,
headers: {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36",
"User-Agent":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36",
},
formData: {
"__EVENTTARGET": "",
"__EVENTARGUMENT": "",
"__VIEWSTATE": "",
"ctl00$MainContent$fu": {
__EVENTTARGET: "",
__EVENTARGUMENT: "",
__VIEWSTATE: "",
ctl00$MainContent$fu: {
value: fs.readFileSync(filePath),
options: {
filename: "output.docx",
contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
},
},
"ctl00$MainContent$btnConvert": "Convert",
"ctl00$MainContent$fuZip": "",
ctl00$MainContent$btnConvert: "Convert",
ctl00$MainContent$fuZip: "",
},
});
}