mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
Rename jest directory to spec (#7935)
This commit is contained in:
parent
8f08ba3307
commit
c037b1dbbe
@ -1,4 +1,4 @@
|
||||
import { createChromeTabMock } from "../../../autofill/jest/autofill-mocks";
|
||||
import { createChromeTabMock } from "../../../autofill/spec/autofill-mocks";
|
||||
import { BrowserApi } from "../../../platform/browser/browser-api";
|
||||
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils";
|
||||
|
||||
|
@ -7,8 +7,8 @@ import { CipherService } from "@bitwarden/common/vault/services/cipher.service";
|
||||
import { FolderService } from "@bitwarden/common/vault/services/folder/folder.service";
|
||||
|
||||
import { BrowserStateService } from "../../platform/services/browser-state.service";
|
||||
import { createChromeTabMock } from "../jest/autofill-mocks";
|
||||
import AutofillService from "../services/autofill.service";
|
||||
import { createChromeTabMock } from "../spec/autofill-mocks";
|
||||
|
||||
import { AddLoginQueueMessage } from "./abstractions/notification.background";
|
||||
import NotificationBackground from "./notification.background";
|
||||
|
@ -16,15 +16,15 @@ import { BrowserApi } from "../../platform/browser/browser-api";
|
||||
import BrowserPlatformUtilsService from "../../platform/services/browser-platform-utils.service";
|
||||
import { BrowserStateService } from "../../platform/services/browser-state.service";
|
||||
import { SHOW_AUTOFILL_BUTTON } from "../constants";
|
||||
import { AutofillService } from "../services/abstractions/autofill.service";
|
||||
import {
|
||||
createAutofillPageDetailsMock,
|
||||
createChromeTabMock,
|
||||
createFocusedFieldDataMock,
|
||||
createPageDetailMock,
|
||||
createPortSpyMock,
|
||||
} from "../jest/autofill-mocks";
|
||||
import { flushPromises, sendExtensionRuntimeMessage, sendPortMessage } from "../jest/testing-utils";
|
||||
import { AutofillService } from "../services/abstractions/autofill.service";
|
||||
} from "../spec/autofill-mocks";
|
||||
import { flushPromises, sendExtensionRuntimeMessage, sendPortMessage } from "../spec/testing-utils";
|
||||
import {
|
||||
AutofillOverlayElement,
|
||||
AutofillOverlayPort,
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
triggerTabOnReplacedEvent,
|
||||
triggerTabOnUpdatedEvent,
|
||||
triggerWindowOnFocusedChangedEvent,
|
||||
} from "../jest/testing-utils";
|
||||
} from "../spec/testing-utils";
|
||||
|
||||
import NotificationBackground from "./notification.background";
|
||||
import OverlayBackground from "./overlay.background";
|
||||
|
@ -2,10 +2,10 @@ import { mock } from "jest-mock-extended";
|
||||
|
||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||
|
||||
import { flushPromises, sendExtensionRuntimeMessage } from "../jest/testing-utils";
|
||||
import AutofillPageDetails from "../models/autofill-page-details";
|
||||
import AutofillScript from "../models/autofill-script";
|
||||
import AutofillOverlayContentService from "../services/autofill-overlay-content.service";
|
||||
import { flushPromises, sendExtensionRuntimeMessage } from "../spec/testing-utils";
|
||||
import { AutofillOverlayVisibility, RedirectFocusDirection } from "../utils/autofill-overlay.enum";
|
||||
|
||||
import { AutofillExtensionMessage } from "./abstractions/autofill-init";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { postWindowMessage, sendExtensionRuntimeMessage } from "../jest/testing-utils";
|
||||
import { postWindowMessage, sendExtensionRuntimeMessage } from "../spec/testing-utils";
|
||||
|
||||
describe("ContentMessageHandler", () => {
|
||||
const sendMessageSpy = jest.spyOn(chrome.runtime, "sendMessage");
|
||||
|
@ -3,12 +3,12 @@ import { mock } from "jest-mock-extended";
|
||||
import { ThemeType } from "@bitwarden/common/platform/enums";
|
||||
|
||||
import { EVENTS } from "../../constants";
|
||||
import { createPortSpyMock } from "../../jest/autofill-mocks";
|
||||
import { createPortSpyMock } from "../../spec/autofill-mocks";
|
||||
import {
|
||||
flushPromises,
|
||||
sendPortMessage,
|
||||
triggerPortOnDisconnectEvent,
|
||||
} from "../../jest/testing-utils";
|
||||
} from "../../spec/testing-utils";
|
||||
import { AutofillOverlayPort } from "../../utils/autofill-overlay.enum";
|
||||
|
||||
import AutofillOverlayIframeService from "./autofill-overlay-iframe.service";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||
|
||||
import { createInitAutofillOverlayButtonMessageMock } from "../../../jest/autofill-mocks";
|
||||
import { postWindowMessage } from "../../../jest/testing-utils";
|
||||
import { createInitAutofillOverlayButtonMessageMock } from "../../../spec/autofill-mocks";
|
||||
import { postWindowMessage } from "../../../spec/testing-utils";
|
||||
|
||||
import AutofillOverlayButton from "./autofill-overlay-button";
|
||||
|
||||
|
@ -2,8 +2,8 @@ import { mock } from "jest-mock-extended";
|
||||
|
||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||
|
||||
import { createInitAutofillOverlayListMessageMock } from "../../../jest/autofill-mocks";
|
||||
import { postWindowMessage } from "../../../jest/testing-utils";
|
||||
import { createInitAutofillOverlayListMessageMock } from "../../../spec/autofill-mocks";
|
||||
import { postWindowMessage } from "../../../spec/testing-utils";
|
||||
|
||||
import AutofillOverlayList from "./autofill-overlay-list";
|
||||
|
||||
|
@ -3,9 +3,9 @@ import { mock } from "jest-mock-extended";
|
||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||
|
||||
import { EVENTS } from "../constants";
|
||||
import { createAutofillFieldMock } from "../jest/autofill-mocks";
|
||||
import { flushPromises } from "../jest/testing-utils";
|
||||
import AutofillField from "../models/autofill-field";
|
||||
import { createAutofillFieldMock } from "../spec/autofill-mocks";
|
||||
import { flushPromises } from "../spec/testing-utils";
|
||||
import { ElementWithOpId, FormFieldElement } from "../types";
|
||||
import {
|
||||
AutofillOverlayElement,
|
||||
|
@ -26,17 +26,17 @@ import { TotpService } from "@bitwarden/common/vault/services/totp.service";
|
||||
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||
import { BrowserStateService } from "../../platform/services/browser-state.service";
|
||||
import { AutofillPort } from "../enums/autofill-port.enums";
|
||||
import AutofillField from "../models/autofill-field";
|
||||
import AutofillPageDetails from "../models/autofill-page-details";
|
||||
import AutofillScript from "../models/autofill-script";
|
||||
import {
|
||||
createAutofillFieldMock,
|
||||
createAutofillPageDetailsMock,
|
||||
createAutofillScriptMock,
|
||||
createChromeTabMock,
|
||||
createGenerateFillScriptOptionsMock,
|
||||
} from "../jest/autofill-mocks";
|
||||
import { triggerTestFailure } from "../jest/testing-utils";
|
||||
import AutofillField from "../models/autofill-field";
|
||||
import AutofillPageDetails from "../models/autofill-page-details";
|
||||
import AutofillScript from "../models/autofill-script";
|
||||
} from "../spec/autofill-mocks";
|
||||
import { triggerTestFailure } from "../spec/testing-utils";
|
||||
import { AutofillOverlayVisibility } from "../utils/autofill-overlay.enum";
|
||||
|
||||
import {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { createAutofillFieldMock, createAutofillFormMock } from "../jest/autofill-mocks";
|
||||
import AutofillField from "../models/autofill-field";
|
||||
import AutofillForm from "../models/autofill-form";
|
||||
import { createAutofillFieldMock, createAutofillFormMock } from "../spec/autofill-mocks";
|
||||
import {
|
||||
ElementWithOpId,
|
||||
FillableFormFieldElement,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { AutofillPort } from "../enums/autofill-port.enums";
|
||||
import { triggerPortOnDisconnectEvent } from "../jest/testing-utils";
|
||||
import { triggerPortOnDisconnectEvent } from "../spec/testing-utils";
|
||||
|
||||
import { logoIcon, logoLockedIcon } from "./svg-icons";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { createChromeTabMock } from "../../autofill/jest/autofill-mocks";
|
||||
import { createChromeTabMock } from "../../autofill/spec/autofill-mocks";
|
||||
import { BrowserApi } from "../browser/browser-api";
|
||||
|
||||
import BrowserPopupUtils from "./browser-popup-utils";
|
||||
|
@ -8,12 +8,12 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv
|
||||
import { Importer, ImportResult, ImportServiceAbstraction } from "@bitwarden/importer/core";
|
||||
|
||||
import NotificationBackground from "../../autofill/background/notification.background";
|
||||
import { createPortSpyMock } from "../../autofill/jest/autofill-mocks";
|
||||
import { createPortSpyMock } from "../../autofill/spec/autofill-mocks";
|
||||
import {
|
||||
flushPromises,
|
||||
sendPortMessage,
|
||||
triggerRuntimeOnConnectEvent,
|
||||
} from "../../autofill/jest/testing-utils";
|
||||
} from "../../autofill/spec/testing-utils";
|
||||
import { FilelessImportPort, FilelessImportType } from "../enums/fileless-import.enums";
|
||||
|
||||
import FilelessImporterBackground from "./fileless-importer.background";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { createPortSpyMock } from "../../autofill/jest/autofill-mocks";
|
||||
import { sendPortMessage } from "../../autofill/jest/testing-utils";
|
||||
import { createPortSpyMock } from "../../autofill/spec/autofill-mocks";
|
||||
import { sendPortMessage } from "../../autofill/spec/testing-utils";
|
||||
import { FilelessImportPort } from "../enums/fileless-import.enums";
|
||||
|
||||
import { LpFilelessImporter } from "./abstractions/lp-fileless-importer";
|
||||
|
Loading…
Reference in New Issue
Block a user