ui: Resolve bad rebase and add in KV test for change of GET for KVs (#5000)

This commit is contained in:
John Cowen 2018-12-04 17:01:59 +00:00 committed by John Cowen
parent c64c88026a
commit 589396b629
3 changed files with 15 additions and 4 deletions

View File

@ -3,10 +3,14 @@ import { inject as service } from '@ember/service';
import { hash } from 'rsvp';
import { get } from '@ember/object';
import { next } from '@ember/runloop';
import { Promise } from 'rsvp';
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
const removeLoading = function($from) {
return $from.classList.remove('ember-loading');
};
export default Route.extend({
export default Route.extend(WithBlockingActions, {
dom: service('dom'),
init: function() {
this._super(...arguments);

View File

@ -85,11 +85,11 @@ module('Unit | Adapter | kv', function(hooks) {
});
});
// not included in the above forEach as it's a slightly different concept
it('returns string KV object when calling queryRecord (or anything else) record', function() {
it('returns string KV object when calling queryRecord (or anything else) record', function(message) {
const actual = adapter.dataForRequest({
requestType: 'queryRecord',
});
assert.equal(actual, null);
assert.deepEqual(actual, deep);
});
});
test('methodForRequest returns the correct method', function(assert) {

View File

@ -2,7 +2,14 @@ import { moduleFor, test } from 'ember-qunit';
moduleFor('route:application', 'Unit | Route | application', {
// Specify the other units that are required for this test.
needs: ['service:repository/dc', 'service:settings', 'service:dom'],
needs: [
'service:repository/dc',
'service:settings',
'service:feedback',
'service:flashMessages',
'service:logger',
'service:dom',
],
});
test('it exists', function(assert) {