Made project Prettier compliant
This commit is contained in:
@ -76,6 +76,5 @@ export class Compiler {
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
@ -43,6 +43,5 @@ export class LocalPacker implements IPacker {
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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: "",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user