Removing unused test and directory.
This commit is contained in:
parent
ef5049ccc7
commit
d99b6b48a8
|
@ -1,26 +0,0 @@
|
||||||
const selfhost = require("..")
|
|
||||||
const env = require("../../environment")
|
|
||||||
|
|
||||||
describe("test the setup process", () => {
|
|
||||||
beforeAll(() => {
|
|
||||||
env.SELF_HOSTED = true
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await selfhost.init()
|
|
||||||
})
|
|
||||||
|
|
||||||
afterAll(() => {
|
|
||||||
env.SELF_HOSTED = false
|
|
||||||
})
|
|
||||||
|
|
||||||
it("getSelfHostInfo", async () => {
|
|
||||||
let info = await selfhost.getSelfHostInfo()
|
|
||||||
expect(info._id).toEqual("self-host-info")
|
|
||||||
})
|
|
||||||
|
|
||||||
it("getSelfHostAPIKey", async () => {
|
|
||||||
let apiKey = await selfhost.getSelfHostAPIKey()
|
|
||||||
expect(typeof apiKey).toEqual("string")
|
|
||||||
})
|
|
||||||
})
|
|
Loading…
Reference in New Issue