Removed auto jsdoc generation
MODIFY
.eslintrc.json
.eslintrc.json
},
"plugins": [
"eslint-plugin-import",
- "eslint-plugin-jsdoc",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
- "plugin:jsdoc/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"

MODIFY
test/api/SiteOrgTest.ts
test/api/SiteOrgTest.ts
@@ -27,9 +27,6 @@ class TestData {
const testData: TestData = new TestData();
-/**
- * @param userRole
- */
function login(userRole) {
testData.userContext = testData.tenantContext.getUserContext(userRole);
if (testData.userContext === testData.centralUserContext) {
@@ -43,9 +40,6 @@ function login(userRole) {
}
}
-/**
- *
- */
async function createSite() {
// Create a site
testData.newSite = await testData.userService.createEntity(
@@ -55,41 +49,25 @@ async function createSite() {
testData.createdSites.push(testData.newSite);
}
-/**
- * @param userRole
- * @param site
- */
async function assignUserToSite(userRole, site): Promise<any> {
// Assign the user to the site
const userContext = await testData.tenantContext.getUserContext(userRole);
return testData.userService.siteApi.addUsersToSite(site.id, [userContext.id]);
}
-/**
- * @param userRole
- * @param sites
- */
+
async function assignSitesToUser(userRole, sites: string[]): Promise<any> {
// Assign the user to the site
const userContext = await testData.tenantContext.getUserContext(userRole);
return testData.userService.siteApi.addSitesToUser(userContext.id, sites);
}
-
-/**
- * @param userRole
- * @param sites
- */
async function unassignSitesToUser(userRole, sites: string[]): Promise<any> {
// Assign the user to the site
const userContext = await testData.tenantContext.getUserContext(userRole);
return testData.userService.siteApi.unassignSitesToUser(userContext.id, sites);
}
-/**
- * @param userRole
- * @param site
- */
async function assignSiteAdmin(userRole, site) {
// Assign the user as admin to the site
const userContext = await testData.tenantContext.getUserContext(userRole);
@@ -97,10 +75,6 @@ async function assignSiteAdmin(userRole, site) {
await testData.userService.siteApi.assignSiteAdmin(site.id, userContext.id);
}
-/**
- * @param userRole
- * @param site
- */
async function assignSiteOwner(userRole, site) {
// Assign the user as owner to the site
const userContext = await testData.tenantContext.getUserContext(userRole);

Removed auto jsdoc generation