tests: enable nock when needed

by default, it makes all requests disappear
This commit is contained in:
Girish Ramakrishnan
2025-02-05 18:19:00 +01:00
parent 7bcb6dd7cb
commit aa54e47029
6 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ describe('updatechecker', function () {
const { setup, cleanup, app, appstoreToken, mockApiServerOrigin } = common;
before(setup);
before(() => { if (!nock.isActive()) nock.activate(); });
after(cleanup);
describe('box', function () {