vault/ui/tests/unit/adapters/console-test.js
madalynrose b41b07a373
UI console (#4631)
* adding columnify and ember-cli-cjs-transform

* add yargs-parser

* remove vendored yargs-parser tokenizer and use cjs transform to import it from actual yargs-parser

* add clear command that clears the log, but maintains history

* make codemirror have no gutter and be auto-height when rendered in the console output log

* add fullscreen command and hook up fullscreen toggle button

* hook up copy button
2018-05-25 16:33:22 -04:00

14 lines
481 B
JavaScript

import { moduleFor, test } from 'ember-qunit';
moduleFor('adapter:console', 'Unit | Adapter | console', {
needs: ['service:auth', 'service:flash-messages', 'service:version'],
});
test('it builds the correct URL', function(assert) {
let adapter = this.subject();
let sysPath = 'sys/health';
let awsPath = 'aws/roles/my-other-role';
assert.equal(adapter.buildURL(sysPath), '/v1/sys/health');
assert.equal(adapter.buildURL(awsPath), '/v1/aws/roles/my-other-role');
});