mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 13:41:10 +02:00
15 lines
511 B
JavaScript
15 lines
511 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupTest } from 'ember-qunit';
|
|
|
|
module('Unit | Adapter | console', function (hooks) {
|
|
setupTest(hooks);
|
|
|
|
test('it builds the correct URL', function (assert) {
|
|
const adapter = this.owner.lookup('adapter:console');
|
|
const sysPath = 'sys/health';
|
|
const awsPath = 'aws/roles/my-other-role';
|
|
assert.strictEqual(adapter.buildURL(sysPath), '/v1/sys/health');
|
|
assert.strictEqual(adapter.buildURL(awsPath), '/v1/aws/roles/my-other-role');
|
|
});
|
|
});
|