github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/unit/mixins/token/with-actions-test.js (about) 1 import { moduleFor } from 'ember-qunit'; 2 import test from 'ember-sinon-qunit/test-support/test'; 3 import { getOwner } from '@ember/application'; 4 import Route from 'consul-ui/routes/dc/acls/tokens/index'; 5 6 import Mixin from 'consul-ui/mixins/token/with-actions'; 7 8 moduleFor('mixin:token/with-actions', 'Unit | Mixin | token/with actions', { 9 // Specify the other units that are required for this test. 10 needs: [ 11 'mixin:with-blocking-actions', 12 'service:feedback', 13 'service:flashMessages', 14 'service:logger', 15 'service:settings', 16 'service:repository/token', 17 ], 18 subject: function() { 19 const MixedIn = Route.extend(Mixin); 20 this.register('test-container:token/with-actions-object', MixedIn); 21 return getOwner(this).lookup('test-container:token/with-actions-object'); 22 }, 23 }); 24 25 // Replace this with your real tests. 26 test('it works', function(assert) { 27 const subject = this.subject(); 28 assert.ok(subject); 29 });