fix: Remove circular dependencies from cli tests (no-changelog) (#5000)

* fix typescript errors in cli

* remove circular dependencies from cli tests
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-22 10:14:15 +01:00
committed by GitHub
parent 17f13b3b6e
commit 0a416eebea
4 changed files with 11 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ describe('License', () => {
config.set('license.autoRenewOffset', MOCK_RENEW_OFFSET);
});
let license;
let license: License;
beforeEach(async () => {
license = new License();
@@ -102,6 +102,6 @@ describe('License', () => {
jest.fn(license.getMainPlan).mockReset();
const mainPlan = license.getMainPlan();
expect(mainPlan.id).toBe(MOCK_MAIN_PLAN_ID);
expect(mainPlan?.id).toBe(MOCK_MAIN_PLAN_ID);
});
});