vault/ui/tests/unit/adapters/oidc/client-test.js
Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

29 lines
692 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupMirage } from 'ember-cli-mirage/test-support';
import testHelper from './test-helper';
module('Unit | Adapter | oidc/client', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
hooks.beforeEach(function () {
this.store = this.owner.lookup('service:store');
this.modelName = 'oidc/client';
this.data = {
name: 'client-1',
key: 'test-key',
access_token_ttl: '30m',
id_token_ttl: '1h',
};
this.path = '/identity/oidc/client/client-1';
});
testHelper(test);
});