mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-19 08:20:41 +01:00
Always store token when using develop and serve (#28179)
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { afterEach, describe, expect, test, vi } from "vitest";
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
let askWrite;
|
||||
|
||||
const HASS_URL = `${location.protocol}//${location.host}`;
|
||||
|
||||
describe("token_storage.askWrite", () => {
|
||||
beforeEach(() => {
|
||||
vi.stubGlobal("__HASS_URL__", HASS_URL);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.resetModules();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user