open-vault/ui/tests/integration/components/console/log-error-test.js

14 lines
477 B
JavaScript
Raw Normal View History

import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('console/log-error', 'Integration | Component | console/log error', {
integration: true,
});
test('it renders', function(assert) {
const errorText = 'Error deleting at: sys/foo.\nURL: v1/sys/foo\nCode: 404';
this.set('content', errorText);
this.render(hbs`{{console/log-error content=content}}`);
assert.dom('pre').includesText(errorText);
});