mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-27 10:00:32 -04:00
* VAULT-45707 - migrates transform templates views * updated fields to snake_case * updated selectors in test to use GENERAL selector Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
31 lines
860 B
JavaScript
31 lines
860 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'vault/tests/helpers';
|
|
import { render } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Component | transform-edit-base', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
|
|
await render(hbs`<TransformEditBase />`);
|
|
|
|
assert.dom(this.element).hasText('');
|
|
|
|
// Template block usage:
|
|
await render(hbs`
|
|
<TransformEditBase>
|
|
template block text
|
|
</TransformEditBase>
|
|
`);
|
|
|
|
assert.dom(this.element).hasText('template block text');
|
|
});
|
|
});
|