From 4277a2e2948ff78079bfe69f4d23528084f0dd81 Mon Sep 17 00:00:00 2001 From: virgilchiriac Date: Wed, 22 Nov 2023 11:03:39 +0100 Subject: [PATCH] remove .only from some tests --- test/services/content/material.test.js | 2 +- test/services/datasources/datasourceRuns.test.js | 6 +++--- .../services/fileStorage/utils/filePermissionHelper.test.js | 2 +- test/services/ldap/strategies/iserv-idm.test.js | 2 +- test/services/link/index.test.js | 2 +- test/services/teams/helper/helper.hook.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/services/content/material.test.js b/test/services/content/material.test.js index ae83280ce32..3d1faa798e3 100644 --- a/test/services/content/material.test.js +++ b/test/services/content/material.test.js @@ -7,7 +7,7 @@ const Material = require('../../../src/services/content/material-model'); const { cleanup, createTestCourse, createTestUser, createTestLesson, generateRequestParamsFromUser } = require('../helpers/testObjects')(appPromise()); -describe.only('material service', () => { +describe('material service', () => { let app; let server; let nestServices; diff --git a/test/services/datasources/datasourceRuns.test.js b/test/services/datasources/datasourceRuns.test.js index 71bc7b12e61..16735fb3bd5 100644 --- a/test/services/datasources/datasourceRuns.test.js +++ b/test/services/datasources/datasourceRuns.test.js @@ -38,7 +38,7 @@ class MockSyncerWithData extends Syncer { } } -describe.only('datasourceRuns service', () => { +describe('datasourceRuns service', () => { let app; let datasourceRunsService; let server; @@ -57,8 +57,8 @@ describe.only('datasourceRuns service', () => { app.unuse('/sync/userAccount'); app.unuse('/sync'); // eslint-disable-next-line global-require - //const sync = require('../../../src/services/sync'); - //app.configure(sync); + const sync = require('../../../src/services/sync'); + app.configure(sync); server = await app.listen(0); }); diff --git a/test/services/fileStorage/utils/filePermissionHelper.test.js b/test/services/fileStorage/utils/filePermissionHelper.test.js index c6eea46a659..37cac5269e2 100644 --- a/test/services/fileStorage/utils/filePermissionHelper.test.js +++ b/test/services/fileStorage/utils/filePermissionHelper.test.js @@ -19,7 +19,7 @@ const fixtures = require('../fixtures'); const { expect } = chai; chai.use(chaiAsPromised); -describe.only('filePermissionHelper', () => { +describe('filePermissionHelper', () => { describe('checkPermissions function should', () => { before(async () => { const promises = [ diff --git a/test/services/ldap/strategies/iserv-idm.test.js b/test/services/ldap/strategies/iserv-idm.test.js index d4f3cfba073..1321e53f789 100644 --- a/test/services/ldap/strategies/iserv-idm.test.js +++ b/test/services/ldap/strategies/iserv-idm.test.js @@ -6,7 +6,7 @@ const appPromise = require('../../../../src/app'); const AbstractLDAPStrategy = require('../../../../src/services/ldap/strategies/interface'); const IservIdmLDAPStrategy = require('../../../../src/services/ldap/strategies/iserv-idm'); -describe.only('IservIdmLDAPStrategy', () => { +describe('IservIdmLDAPStrategy', () => { it('implements AbstractLDAPStrategy', () => { expect(new IservIdmLDAPStrategy()).to.be.instanceOf(AbstractLDAPStrategy); }); diff --git a/test/services/link/index.test.js b/test/services/link/index.test.js index be49b00d24a..202f22b79bd 100644 --- a/test/services/link/index.test.js +++ b/test/services/link/index.test.js @@ -7,7 +7,7 @@ const logger = require('../../../src/logger'); chai.use(chaiHttp); -describe.only('link service', () => { +describe('link service', () => { let app; let port; let server; diff --git a/test/services/teams/helper/helper.hook.js b/test/services/teams/helper/helper.hook.js index 215b2bf9d1b..12dd02c62de 100644 --- a/test/services/teams/helper/helper.hook.js +++ b/test/services/teams/helper/helper.hook.js @@ -1,5 +1,5 @@ -const service = require('../../../utils/feathers-mongoose'); const { Configuration } = require('@hpi-schul-cloud/commons'); +const service = require('../../../../src/utils/feathers-mongoose'); const { BadRequest } = require('../../../../src/errors');