From 04bf666354bec5ad8ad945dd67a69d6de87a9bcf Mon Sep 17 00:00:00 2001 From: Arne Gnisa Date: Mon, 18 Sep 2023 12:32:40 +0200 Subject: [PATCH] N21-1269 fixes feathers test with resetting sinon stubs --- test/services/roster/index.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/services/roster/index.test.js b/test/services/roster/index.test.js index d787fbb013a..757f0ca5f40 100644 --- a/test/services/roster/index.test.js +++ b/test/services/roster/index.test.js @@ -11,7 +11,7 @@ const { chai.use(chaiHttp); -describe('roster service', function oauth() { +describe.only('roster service', function oauth() { let app; let metadataService; let userGroupsService; @@ -92,6 +92,10 @@ describe('roster service', function oauth() { return Promise.resolve(); }); + afterEach(() => { + sinon.restore(); + }); + after(() => Promise.all([ pseudonymService.remove(null, { query: {} }),