meilisearch-admin/tests/integration/helpers/obj-to-array-test.js

18 lines
564 B
JavaScript
Raw Permalink Normal View History

2022-08-29 11:30:47 +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 | obj-to-array', 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', { a: 1, b: 2 });
2022-08-29 11:30:47 +00:00
await render(hbs`{{obj-to-array this.inputValue}}`);
2022-09-18 14:18:04 +00:00
assert.dom(this.element).hasText('[object Object],[object Object]');
2022-08-29 11:30:47 +00:00
});
});