lint
This commit is contained in:
parent
1b2053633d
commit
d89cd0955e
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
import "@spectrum-css/dropzone/dist/index-vars.css"
|
||||
import "@spectrum-css/typography/dist/index-vars.css"
|
||||
import "@spectrum-css/illustratedmessage/dist/index-vars.css"
|
||||
import { createEventDispatcher, getContext } from "svelte"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import { uuid } from "../../helpers"
|
||||
import Icon from "../../Icon/Icon.svelte"
|
||||
import Link from "../../Link/Link.svelte"
|
||||
|
|
|
@ -4,7 +4,7 @@ import { render, fireEvent } from "@testing-library/svelte"
|
|||
import { notifications } from "@budibase/bbui";
|
||||
import { admin } from "stores/portal"
|
||||
|
||||
vi.spyOn(notifications, "error").mockImplementation(() => {});
|
||||
vi.spyOn(notifications, "error").mockImplementation(() => {})
|
||||
|
||||
|
||||
describe("Dropzone", () => {
|
||||
|
@ -33,7 +33,7 @@ describe("Dropzone", () => {
|
|||
type: "image/png"
|
||||
}
|
||||
)
|
||||
await fireEvent.change(fileInput, { target: { files: [file] } });
|
||||
await fireEvent.change(fileInput, { target: { files: [file] } })
|
||||
expect(notifications.error).toHaveBeenCalledWith("Files cannot exceed 1MB. Please try again with smaller files.")
|
||||
})
|
||||
|
||||
|
@ -51,7 +51,7 @@ describe("Dropzone", () => {
|
|||
type: "image/png"
|
||||
}
|
||||
)
|
||||
await fireEvent.change(fileInput, { target: { files: [file] } });
|
||||
await fireEvent.change(fileInput, { target: { files: [file] } })
|
||||
expect(notifications.error).not.toHaveBeenCalledWith("Files cannot exceed 1MB. Please try again with smaller files.")
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue