9d841bc947
* automation unit tests * row processor tests * update executeQuery test * update groups assertion * some more worker tests * plugin tests and tidying up * linting * temporarily disable group tests * more tests * fix import * fix backup tests * add pro mocks to worker * check for app existence in import test * test new tsconfig * testing changes * Pro test utils (#9020) * Pro test utils changes * Add test fixes * Remove ts-ignore Co-authored-by: mike12345567 <me@michaeldrury.co.uk> Co-authored-by: Rory Powell <rory.codes@gmail.com>
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import TestConfiguration from "../TestConfiguration"
|
|
import { TestAPI } from "./base"
|
|
|
|
export class LicenseAPI extends TestAPI {
|
|
constructor(config: TestConfiguration) {
|
|
super(config)
|
|
}
|
|
|
|
activate = async (licenseKey: string) => {
|
|
return this.request
|
|
.post("/api/global/license/activate")
|
|
.send({ licenseKey: licenseKey })
|
|
.set(this.config.defaultHeaders())
|
|
.expect("Content-Type", /json/)
|
|
.expect(200)
|
|
}
|
|
}
|