Skip to content
Snippets Groups Projects
Commit f29e57b1 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix unit test timezones etc

parent 5816da9c
No related branches found
No related tags found
No related merge requests found
......@@ -1484,7 +1484,7 @@ export const clickedDateTimeValue = {
...metadata.fields[ORDERS_CREATED_DATE_FIELD_ID],
source: "fields",
},
value: "2018-01-01T00:00:00.000Z",
value: "2018-01-01T00:00:00Z",
};
export const clickedMetric = {
......
......@@ -436,6 +436,26 @@ exports[`EntityMenu should render "Share menu" correctly 1`] = `
</div>
`;
exports[`ProgressBar should render "Animated" correctly 1`] = `
<div
className="xt xu xv xn"
>
<div
className="xw xx xt xy xz x10 x11 x12 x13 x1d x1e x16 x17 x18 x1f x1a x1b x1g"
/>
</div>
`;
exports[`ProgressBar should render "Default" correctly 1`] = `
<div
className="xt xu xv xn"
>
<div
className="xw xx xt xy xz x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x1a x1b x1c"
/>
</div>
`;
exports[`Select should render "Default" correctly 1`] = `
<a
className="no-decoration"
......
......@@ -47,7 +47,7 @@ describe("UnderlyingRecordsDrill", () => {
expect(UnderlyingRecordsDrill({ question })).toHaveLength(0);
});
it("should be return correct new card for breakout by month", () => {
const value = "2018-01-01T00:00:00.000Z";
const value = "2018-01-01T00:00:00Z";
const actions = UnderlyingRecordsDrill(
getActionPropsForTimeseriesClick("month", value),
);
......
/* eslint-disable flowtype/require-valid-file-annotation */
import { drillFilter } from "metabase/qb/lib/actions";
import moment from "moment";
describe("actions", () => {
describe("drillFilter", () => {
......@@ -13,7 +12,7 @@ describe("actions", () => {
query: {},
},
},
moment("2018-04-27T00:00:00.000+02:00"),
"2018-04-27T00:00:00.000+02:00",
{
base_type: "type/DateTime",
id: 123,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment