vault/ui/tests/integration/components/console/log-command-test.js
claire bontempo 7e09f991a8
UI: fix browser console formatting (#20064)
* fix console formatting for help output

* fix again

* fix again

* fix, add to ignore

* fix, add to ignore

* add to ignore file

* fix formatting, no verify

* remove lib/story.md

* add changelog

* hold off updating ignore list for separate ticket

* fix test
2023-04-11 10:42:50 -07:00

22 lines
618 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | console/log command', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
const commandText = 'list this/path';
this.set('content', commandText);
await render(hbs`{{console/log-command content=this.content}}`);
assert.dom('p').includesText(commandText);
});
});