You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/tests/unit/mixins/with-feedback-test.js

21 lines
722 B

import EmberObject from '@ember/object';
import WithFeedbackMixin from 'consul-ui/mixins/with-feedback';
import { moduleFor, test } from 'ember-qunit';
moduleFor('mixin:with-feedback', 'Unit | Mixin | with feedback', {
// Specify the other units that are required for this test.
needs: ['service:feedback'],
subject: function() {
const WithFeedbackObject = EmberObject.extend(WithFeedbackMixin);
this.register('test-container:with-feedback-object', WithFeedbackObject);
// TODO: May need to actually get this from the container
return WithFeedbackObject;
},
});
// Replace this with your real tests.
test('it works', function(assert) {
const subject = this.subject();
assert.ok(subject);
});