fix: show snapshot time in browser time zone (#101)
This commit was merged in pull request #102.
This commit is contained in:
@@ -413,7 +413,9 @@ describe("stock page", () => {
|
||||
expect(await screen.findByText("Продажа")).toBeVisible();
|
||||
expect(screen.getByText("2 шт.")).toBeVisible();
|
||||
expect(screen.getByText("Цена: 100 ₽")).toBeVisible();
|
||||
expect(screen.getByText(/02.01.2022, 10:00 UTC/)).toBeVisible();
|
||||
const snapshotTime = new Intl.DateTimeFormat("ru-RU", { dateStyle: "short", timeStyle: "short" });
|
||||
const operationTime = snapshotTime.format(new Date("2022-01-02T10:00:00Z"));
|
||||
expect(screen.getByText(operationTime, { exact: false })).toBeVisible();
|
||||
expect(
|
||||
requests.some(
|
||||
url =>
|
||||
|
||||
Reference in New Issue
Block a user