From d1d1e01affa7455f2eb2b72221964dac1fa1ed7c Mon Sep 17 00:00:00 2001 From: amitm02 Date: Mon, 17 Sep 2018 11:29:01 +0300 Subject: [PATCH] lint fix --- .../body/section-properties/section-properties.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/file/document/body/section-properties/section-properties.spec.ts b/src/file/document/body/section-properties/section-properties.spec.ts index 8d5c6553f2..be553d53b7 100644 --- a/src/file/document/body/section-properties/section-properties.spec.ts +++ b/src/file/document/body/section-properties/section-properties.spec.ts @@ -25,7 +25,6 @@ describe("SectionProperties", () => { pageNumberFormatType: PageNumberFormat.CARDINAL_TEXT, }); const tree = new Formatter().format(properties); - expect(Object.keys(tree)).to.deep.equal(["w:sectPr"]); expect(tree["w:sectPr"]).to.be.an.instanceof(Array); expect(tree["w:sectPr"][0]).to.deep.equal({ "w:pgSz": [{ _attr: { "w:h": 16838, "w:w": 11906, "w:orient": "portrait" } }] }); @@ -162,7 +161,7 @@ describe("SectionProperties", () => { }); const tree = new Formatter().format(properties); expect(Object.keys(tree)).to.deep.equal(["w:sectPr"]); - let pgBorders = tree["w:sectPr"].find(item => item["w:pgBorders"] != null); + const pgBorders = tree["w:sectPr"].find((item) => item["w:pgBorders"] !== undefined); expect(pgBorders).to.deep.equal({ "w:pgBorders": [{ _attr: { "w:offsetFrom": "page" } }], });