@budibase/worker
Version:
Budibase background service
18 lines (15 loc) • 468 B
text/typescript
import TestConfiguration from "../TestConfiguration"
import { TestAPI, TestAPIOpts } from "./base"
export class TenantAPI extends TestAPI {
config: TestConfiguration
constructor(config: TestConfiguration) {
super(config)
this.config = config
}
delete = (tenantId: string, opts?: TestAPIOpts) => {
return this.request
.delete(`/api/system/tenants/${tenantId}`)
.set(opts?.headers)
.expect(opts?.status ? opts.status : 204)
}
}