lint
This commit is contained in:
parent
c476b20ac1
commit
89db22858a
|
@ -72,7 +72,12 @@ class TestConfiguration {
|
||||||
|
|
||||||
// UTILS
|
// UTILS
|
||||||
|
|
||||||
async _req(config: any, params: any, controlFunc: any, opts: { force?: boolean } = {}) {
|
async _req(
|
||||||
|
config: any,
|
||||||
|
params: any,
|
||||||
|
controlFunc: any,
|
||||||
|
opts: { force?: boolean } = {}
|
||||||
|
) {
|
||||||
const request: any = {}
|
const request: any = {}
|
||||||
// fake cookies, we don't need them
|
// fake cookies, we don't need them
|
||||||
request.cookies = { set: () => {}, get: () => {} }
|
request.cookies = { set: () => {}, get: () => {} }
|
||||||
|
@ -86,8 +91,8 @@ class TestConfiguration {
|
||||||
} else if (this.defaultUser) {
|
} else if (this.defaultUser) {
|
||||||
request.user = this.defaultUser
|
request.user = this.defaultUser
|
||||||
} else {
|
} else {
|
||||||
request.user = {
|
request.user = {
|
||||||
tenantId: this.getTenantId()
|
tenantId: this.getTenantId(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request.query = {}
|
request.query = {}
|
||||||
|
@ -153,7 +158,7 @@ class TestConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
async createSession(user: User) {
|
async createSession(user: User) {
|
||||||
const session: any = {
|
const session: any = {
|
||||||
sessionId: "sessionid",
|
sessionId: "sessionid",
|
||||||
tenantId: user.tenantId,
|
tenantId: user.tenantId,
|
||||||
csrfToken: CSRF_TOKEN,
|
csrfToken: CSRF_TOKEN,
|
||||||
|
|
Loading…
Reference in New Issue