Skip to content

Commit 86d8798

Browse files
committed
Resolved PR comments
1 parent fd730f8 commit 86d8798

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/javascript/components/record-list/components/date-column/component.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Component = ({ rowAvailable, wrapper, value, valueWithTime }) => {
2828
/>
2929
</div>
3030
) : (
31-
<>{parsedValue || ""}</>
31+
<span data-testid="parsed-date">{parsedValue || ""}</span>
3232
);
3333

3434
return (

app/javascript/components/record-list/components/date-column/component.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("<DateColumn />", () => {
1414

1515
it("renders a <DateColumn />", () => {
1616
mountedComponent(<DateColumn {...props} />, fromJS({}));
17-
expect(screen.queryByText(/2020-04-150T14:04/i)).not.toBeInTheDocument();
17+
expect(screen.getByTestId('parsed-date')).toBeInTheDocument();
1818
});
1919

2020
describe("when ne locale", () => {

0 commit comments

Comments
 (0)