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