2022-11-12 00:10:07 +13:00
|
|
|
import TestConfiguration from "../TestConfiguration"
|
2022-11-12 04:43:41 +13:00
|
|
|
import { TestAPI } from "./base"
|
2022-11-12 00:10:07 +13:00
|
|
|
|
2022-11-12 04:43:41 +13:00
|
|
|
export class EnvironmentAPI extends TestAPI {
|
2022-11-12 00:10:07 +13:00
|
|
|
constructor(config: TestConfiguration) {
|
2022-11-12 04:43:41 +13:00
|
|
|
super(config)
|
2022-11-12 00:10:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
getEnvironment = () => {
|
|
|
|
return this.request
|
|
|
|
.get(`/api/system/environment`)
|
|
|
|
.expect("Content-Type", /json/)
|
|
|
|
.expect(200)
|
|
|
|
}
|
|
|
|
}
|