diff --git a/src/IsWarning.spec.ts b/src/IsWarning.spec.ts index 87dee5e1..7c2debce 100644 --- a/src/IsWarning.spec.ts +++ b/src/IsWarning.spec.ts @@ -13,9 +13,7 @@ describe("IsWarning", () => { expect(isWarning(msg)).to.eql(true) }) } - for (const msg of [ - "Error: File not found - nonexistant.jpg", - ]) { + for (const msg of ["Error: File not found - nonexistant.jpg"]) { it(`rejects ${msg}`, () => { expect(isWarning(msg)).to.eql(false) }) diff --git a/src/WriteTask.spec.ts b/src/WriteTask.spec.ts index 222c305f..1cd8668b 100644 --- a/src/WriteTask.spec.ts +++ b/src/WriteTask.spec.ts @@ -357,16 +357,20 @@ describe("WriteTask", function () { it("rejects setting to a non-time value", async () => { const src = await dest() expect( - (await exiftool.write(src, { - DateTimeOriginal: "this is not a time" as any, - })).warnings?.join("\n") + ( + await exiftool.write(src, { + DateTimeOriginal: "this is not a time" as any, + }) + ).warnings?.join("\n") ).to.match(/Invalid date\/time/) }) it("rejects an invalid numeric Orientation", async () => { const src = await dest() expect( - (await exiftool.write(src, { "Orientation#": -1 })).warnings?.join("\n") + (await exiftool.write(src, { "Orientation#": -1 })).warnings?.join( + "\n" + ) ).to.match(/Value below int16u minimum/i) }) @@ -495,7 +499,9 @@ describe("WriteTask", function () { it("rejects unknown tags", async () => { const src = await dest() return expect( - (await exiftool.write(src, { RandomTag: 123 } as any)).warnings?.join("\n") + ( + await exiftool.write(src, { RandomTag: 123 } as any) + ).warnings?.join("\n") ).to.match(/Tag 'RandomTag' is not defined/) })