mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
This commit is contained in:
parent
7fc3705838
commit
b6349bf3d0
1 changed files with 3 additions and 0 deletions
|
|
@ -12,12 +12,15 @@ module('Integration | Component | usage | Page::Usage', function (hooks) {
|
|||
setupRenderingTest(hooks);
|
||||
|
||||
hooks.beforeEach(async function () {
|
||||
this.authStub = sinon.stub(this.owner.lookup('service:auth'), 'authData');
|
||||
this.authStub.value({ userRootNamespace: '' });
|
||||
this.api = this.owner.lookup('service:api');
|
||||
this.generateUtilizationReportStub = sinon.stub(this.api.sys, 'generateUtilizationReport').resolves({});
|
||||
});
|
||||
|
||||
hooks.afterEach(function () {
|
||||
this.generateUtilizationReportStub.restore();
|
||||
this.authStub.restore();
|
||||
});
|
||||
|
||||
test('it provides the correct fetch function to the dashboard component', async function (assert) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue