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/integration/adapters/dc-test.js

13 lines
495 B

import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | dc', function(hooks) {
setupTest(hooks);
test('requestForFindAll returns the correct url', function(assert) {
const adapter = this.owner.lookup('adapter:dc');
const client = this.owner.lookup('service:client/http');
const expected = `GET /v1/catalog/datacenters`;
const actual = adapter.requestForFindAll(client.url);
assert.equal(actual, expected);
});
});