Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addon/components/hyper-table-v2/cell-renderers/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface HyperTableV2RenderersDateArgs {
extra?: { [key: string]: any };
}

const DEFAULT_DATE_FORMAT = 'MMMM D, YYYY';
const DEFAULT_DATE_FORMAT = 'MMM DD, YYYY';

export default class HyperTableV2CellRenderersDate extends Component<HyperTableV2RenderersDateArgs> {
get value() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module('Integration | Component | hyper-table-v2/cell-renderers/date', function

assert.equal(this.column.definition.key, 'date');
assert.equal(this.row[this.column.definition.key], '1643386394');
assert.dom().hasText('January 28, 2022');
assert.dom().hasText('Jan 28, 2022');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: following your screenshot, shouldn't there be a period (".") after the month? If so it's weird that the test passes as is (IMO it would be worth tightening).

Suggested change
assert.dom().hasText('Jan 28, 2022');
assert.dom().hasText('Jan. 28, 2022');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The screenshot is not up-to-date, I will update it when possible. Thanks for letting me know :)

});

test('it renders a default - when the value is null', async function (this: TestContext, assert) {
Expand Down
Loading