mirror of https://github.com/status-im/consul.git
ui: Resolve bad rebase and add in KV test for change of GET for KVs (#5000)
This commit is contained in:
parent
7fc59af7e2
commit
845081e871
|
@ -3,10 +3,14 @@ import { inject as service } from '@ember/service';
|
||||||
import { hash } from 'rsvp';
|
import { hash } from 'rsvp';
|
||||||
import { get } from '@ember/object';
|
import { get } from '@ember/object';
|
||||||
import { next } from '@ember/runloop';
|
import { next } from '@ember/runloop';
|
||||||
|
import { Promise } from 'rsvp';
|
||||||
|
|
||||||
|
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
|
||||||
|
|
||||||
const removeLoading = function($from) {
|
const removeLoading = function($from) {
|
||||||
return $from.classList.remove('ember-loading');
|
return $from.classList.remove('ember-loading');
|
||||||
};
|
};
|
||||||
export default Route.extend({
|
export default Route.extend(WithBlockingActions, {
|
||||||
dom: service('dom'),
|
dom: service('dom'),
|
||||||
init: function() {
|
init: function() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
|
@ -85,11 +85,11 @@ module('Unit | Adapter | kv', function(hooks) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// not included in the above forEach as it's a slightly different concept
|
// 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({
|
const actual = adapter.dataForRequest({
|
||||||
requestType: 'queryRecord',
|
requestType: 'queryRecord',
|
||||||
});
|
});
|
||||||
assert.equal(actual, null);
|
assert.deepEqual(actual, deep);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
test('methodForRequest returns the correct method', function(assert) {
|
test('methodForRequest returns the correct method', function(assert) {
|
||||||
|
|
|
@ -2,7 +2,14 @@ import { moduleFor, test } from 'ember-qunit';
|
||||||
|
|
||||||
moduleFor('route:application', 'Unit | Route | application', {
|
moduleFor('route:application', 'Unit | Route | application', {
|
||||||
// Specify the other units that are required for this test.
|
// 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) {
|
test('it exists', function(assert) {
|
||||||
|
|
Loading…
Reference in New Issue