mirror of https://github.com/Budibase/budibase.git
2 changed files with 46 additions and 46 deletions
@ -1,32 +0,0 @@ |
|||
let env = require("../../environment") |
|||
|
|||
class TestConfiguration { |
|||
constructor(middleware) { |
|||
// env = config.env || {}
|
|||
this.middleware = middleware |
|||
this.next = jest.fn() |
|||
this.throwMock = jest.fn() |
|||
} |
|||
|
|||
callMiddleware(ctx, next) { |
|||
return this.middleware(ctx, next) |
|||
} |
|||
|
|||
clear() { |
|||
jest.clearAllMocks() |
|||
} |
|||
|
|||
setEnv(config) { |
|||
env = config |
|||
} |
|||
|
|||
async init() { |
|||
// return this.createApp(appName)
|
|||
} |
|||
|
|||
end() { |
|||
// this.server.close()
|
|||
} |
|||
} |
|||
|
|||
module.exports = TestConfiguration |
|||
Loading…
Reference in new issue