mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Removed ember component test
No ref - This will be replaced by snapshot tests
This commit is contained in:
parent
b41897a2b4
commit
f8273b7f1f
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
|||
import {describe, it} from 'mocha';
|
||||
import {expect} from 'chai';
|
||||
import {find, render} from '@ember/test-helpers';
|
||||
import {hbs} from 'ember-cli-htmlbars';
|
||||
import {setupRenderingTest} from 'ember-mocha';
|
||||
|
||||
describe('Integration | Component | modal-post-history', function () {
|
||||
setupRenderingTest();
|
||||
|
||||
it('renders', async function () {
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.set('myAction', function(val) { ... });
|
||||
|
||||
await render(hbs`<ModalPostHistory />`);
|
||||
|
||||
expect(find('h2').textContent.trim()).to.equal('Post History');
|
||||
|
||||
// Template block usage:
|
||||
await render(hbs`
|
||||
<ModalPostHistory>
|
||||
template block text
|
||||
</ModalPostHistory>
|
||||
`);
|
||||
|
||||
expect(find('h2').textContent.trim()).to.equal('Post History');
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue