Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 9, 2023
1 parent 7e9a83b commit 58ce1f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/IsWarning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
16 changes: 11 additions & 5 deletions src/WriteTask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down Expand Up @@ -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/)
})

Expand Down

0 comments on commit 58ce1f9

Please sign in to comment.