mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Dynamic OpenAPI UI (#6209)
This commit is contained in:
@@ -5,17 +5,33 @@ import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, settled } from '@ember/test-helpers';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
import sinon from 'sinon';
|
||||
import Service from '@ember/service';
|
||||
|
||||
import { create } from 'ember-cli-page-object';
|
||||
import authConfigForm from 'vault/tests/pages/components/auth-config-form/options';
|
||||
|
||||
const component = create(authConfigForm);
|
||||
const routerService = Service.extend({
|
||||
transitionTo() {
|
||||
return {
|
||||
followRedirects() {
|
||||
return resolve();
|
||||
},
|
||||
};
|
||||
},
|
||||
replaceWith() {
|
||||
return resolve();
|
||||
},
|
||||
});
|
||||
|
||||
module('Integration | Component | auth-config-form options', function(hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
hooks.beforeEach(function() {
|
||||
this.owner.lookup('service:flash-messages').registerTypes(['success']);
|
||||
this.owner.register('service:router', routerService);
|
||||
this.router = this.owner.lookup('service:router');
|
||||
|
||||
component.setContext(this);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user