Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Jun 23, 2022
1 parent ad660ad commit a8b069e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/data-grid/cells/cells.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { imageCellRenderer } from "./image-cell";
import * as React from "react";
import noop from "lodash/noop";
import { ImageEditorType } from "./cell-types";
import { getDefaultTheme } from "../..";

function getMockEditorTarget(): Rectangle {
return {
Expand Down Expand Up @@ -47,7 +48,7 @@ describe("Image cell", () => {
it("Measures a reasonable size", async () => {
const cell = getImgCell();
const ctx = get2dContext();
const autoSize = imageCellRenderer.measure(ctx, cell);
const autoSize = imageCellRenderer.measure(ctx, cell, getDefaultTheme());
expect(autoSize).toBe(100);
});

Expand Down

0 comments on commit a8b069e

Please sign in to comment.