14 lines
477 B
JavaScript
14 lines
477 B
JavaScript
|
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);
|
||
|
});
|