Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const routeSources = ["app.$tenant/passwords.admin.tsx", "app.$tenant/passwords.$vaultId._index.tsx"].map((route) =>
|
||||
readFileSync(resolve(process.cwd(), "apps/web/app/routes", route), "utf8")
|
||||
);
|
||||
|
||||
describe("password safe date localization", () => {
|
||||
it("formats activity timestamps with the request locale", () => {
|
||||
for (const source of routeSources) {
|
||||
expect(source).toContain("new Intl.DateTimeFormat(locale,");
|
||||
expect(source).not.toContain('new Intl.DateTimeFormat("de-DE"');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user