Skip to content

Commit

Permalink
tentative for fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Jan 16, 2025
1 parent 71f393a commit 23afd56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"markdownlint-cli": "0.34.0",
"mini-css-extract-plugin": "1.3.9",
"mkdirp": "0.5.1",
"moment-timezone": "^0.5.46",
"ncp": "2.0.0",
"parallelshell": "1.2.0",
"postcss": "8.3.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import React from "react";
import ReactDOM, {unmountComponentAtNode} from "react-dom";
import expect from "expect";
import { act } from "react-dom/test-utils";

import moment from "moment-timezone";
import {
getFormatter,
registerFormatter,
Expand Down Expand Up @@ -207,7 +207,11 @@ describe("Tests for the formatter functions", () => {
});
expect(container.textContent).toBe("02:30");
});
it("test getFormatter for date / date-time / time no UTC", () => {
it.only("test getFormatter for date / date-time / time no UTC", () => {

Check failure on line 210 in web/client/components/data/featuregrid/formatters/__tests__/index-test.jsx

View workflow job for this annotation

GitHub Actions / test-front-end

it.only not permitted


// Step 1: Set a default timezone globally
moment.tz.setDefault("Europe/Madrid");
const dateFormats = {
date: "DD/MM/YYYY",
"date-time": "DD/MM/YYYY HH:mm:ss",
Expand Down

0 comments on commit 23afd56

Please sign in to comment.