1
0
Fork 0
mirror of synced 2024-06-17 18:04:42 +12:00
budibase/packages/worker/src/tests/api/environment.ts

16 lines
351 B
TypeScript
Raw Normal View History

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