use testAction for validateProjectBilling
This commit is contained in:
parent
303af892be
commit
fb9d8b9b49
|
@ -69,14 +69,17 @@ describe('GCP Cluster Dropdown Store Actions', () => {
|
||||||
|
|
||||||
describe('validateProjectBilling', () => {
|
describe('validateProjectBilling', () => {
|
||||||
it('checks project billing status from Google API', done => {
|
it('checks project billing status from Google API', done => {
|
||||||
store
|
testAction(
|
||||||
.dispatch('validateProjectBilling')
|
actions.validateProjectBilling,
|
||||||
.then(() => {
|
true,
|
||||||
expect(store.state.projectHasBillingEnabled).toBeTruthy();
|
{
|
||||||
|
selectedProject: selectedProjectMock,
|
||||||
done();
|
projectHasBillingEnabled: null,
|
||||||
})
|
},
|
||||||
.catch(done.fail);
|
[{ type: 'SET_PROJECT_BILLING_STATUS', payload: true }],
|
||||||
|
[],
|
||||||
|
done,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue