meilisearch-admin/tests/integration/helpers/date-time-format-test.js

18 lines
553 B
JavaScript
Raw Normal View History

2022-08-28 12:26:38 +00:00
import { module, test } from 'qunit';
import { setupRenderingTest } from 'meiliadmin/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Helper | DateTimeFormat', function (hooks) {
setupRenderingTest(hooks);
// TODO: Replace this with your real tests.
test('it renders', async function (assert) {
2022-09-18 14:18:04 +00:00
this.set('inputValue', new Date(2000, 0, 1));
2022-08-28 12:26:38 +00:00
await render(hbs`{{date-time-format this.inputValue}}`);
2022-09-18 14:18:04 +00:00
assert.dom(this.element).hasText('1/1/2000');
2022-08-28 12:26:38 +00:00
});
});