tests: enable nock when needed
by default, it makes all requests disappear
This commit is contained in:
@@ -17,6 +17,7 @@ const { setup, cleanup, serverUrl, owner, appstoreToken } = common;
|
||||
|
||||
describe('Appstore Apps API', function () {
|
||||
before(setup);
|
||||
before(() => { if (!nock.isActive()) nock.activate(); });
|
||||
after(cleanup);
|
||||
|
||||
it('cannot list apps when appstore is down', async function () {
|
||||
|
||||
@@ -16,6 +16,7 @@ describe('Support API', function () {
|
||||
const { setup, cleanup, serverUrl, owner, mockApiServerOrigin, appstoreToken, user, admin } = common;
|
||||
|
||||
before(setup);
|
||||
before(() => { if (!nock.isActive()) nock.activate(); });
|
||||
after(cleanup);
|
||||
|
||||
const authorizedKeysFile = support._sshInfo().filePath;
|
||||
|
||||
Reference in New Issue
Block a user