Skip to content

Commit

Permalink
fix: More complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed May 20, 2024
1 parent c77b862 commit dd54b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/test/unit/License.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ describe('License', () => {
const license = new License(mock(), mock(), mock(), mock(), mock());
await license.init();

const initSpy = jest.spyOn(license, 'init');

await license.reinit();

expect(initSpy).toHaveBeenCalledWith('main', true);

expect(LicenseManager.prototype.reset).toHaveBeenCalled();
expect(LicenseManager.prototype.initialize).toHaveBeenCalled();
});
Expand Down

0 comments on commit dd54b37

Please sign in to comment.