c98130cc08
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
JavaScript
import { module } from 'qunit';
|
|
import { setupTest } from 'ember-qunit';
|
|
// import Service from '@ember/service';
|
|
import test from 'ember-sinon-qunit/test-support/test';
|
|
|
|
module('Unit | Route | index', function(hooks) {
|
|
setupTest(hooks);
|
|
|
|
test('it exists', function(assert) {
|
|
let route = this.owner.lookup('route:index');
|
|
assert.ok(route);
|
|
});
|
|
// test('model calls findAll', function(assert) {
|
|
// const expected = true;
|
|
// const findAll = this.stub();
|
|
// findAll.returns(expected);
|
|
// this.register(
|
|
// 'service:dc',
|
|
// Service.extend({
|
|
// findAll: findAll,
|
|
// })
|
|
// );
|
|
// const route = this.subject();
|
|
// const actual = route.model();
|
|
// assert.equal(actual, expected);
|
|
// assert.ok(findAll.calledOnce);
|
|
// });
|
|
// test('it transitions straight away if there is only one datacenter', function(assert) {
|
|
// const route = this.subject();
|
|
// const transitionTo = this.stub(route, 'transitionTo');
|
|
// const get = this.stub();
|
|
// get.returns(1);
|
|
// route.afterModel({ get: get });
|
|
// get.returns(2);
|
|
// route.afterModel({ get: get });
|
|
// assert.ok(transitionTo.calledOnce);
|
|
// });
|
|
});
|