Ghost/ghost/admin/tests/integration/components/modals/delete-subscriber-test.js

25 lines
804 B
JavaScript
Raw Normal View History

import hbs from 'htmlbars-inline-precompile';
2016-11-24 01:50:57 +03:00
import {describe, it} from 'mocha';
import {expect} from 'chai';
2016-11-24 01:50:57 +03:00
import {setupComponentTest} from 'ember-mocha';
describe('Integration: Component: modal-delete-subscriber', function () {
setupComponentTest('modal-delete-subscriber', {
integration: true
2016-11-24 01:50:57 +03:00
});
it('renders', function () {
2016-11-24 01:50:57 +03:00
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
// Template block usage:
// this.render(hbs`
// {{#modal-delete-subscriber}}
2016-11-24 01:50:57 +03:00
// template content
// {{/modal-delete-subscriber}}
2016-11-24 01:50:57 +03:00
// `);
this.render(hbs`{{modal-delete-subscriber}}`);
2016-11-24 01:50:57 +03:00
expect(this.$()).to.have.length(1);
});
});