
> job-tracker-ui@0.1.0 test
> jest --runInBand job-discovery.test.tsx -t title sorting follows UI language changes

FAIL src/job-discovery.test.tsx
  ● title sorting follows UI language changes without refetching or changing discovery filters

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

      Array [
    -   "Zoologist",
        "Åker agronom",
    +   "Zoologist",
      ]

      115 |
      116 |   act(() => { window.dispatchEvent(new StorageEvent("storage", { key: "uiLanguage", newValue: "nb" })); });
    > 117 |   expect(titles()).toEqual(["Zoologist", "Åker agronom"]);
          |                    ^
      118 |   expect(screen.getByLabelText("Rolle eller bedrift")).toHaveValue("science");
      119 |   expect(screen.getByLabelText("Kommune")).toHaveValue("Oslo");
      120 |   expect(screen.getByRole("combobox", { name: translations.nb.jobDiscoverySort })).toHaveTextContent(translations.nb.jobDiscoverySortTitle);

      at Object.toEqual (src/job-discovery.test.tsx:117:20)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 23 skipped, 24 total
Snapshots:   0 total
Time:        5.888 s
Ran all test suites matching job-discovery.test.tsx with tests matching "title sorting follows UI language changes".
