How to use the egg-mock/bootstrap.app.model function in egg-mock

To help you get started, we’ve selected a few egg-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github macacajs / macaca-datahub / test / .setup.js View on Github external
const restore = async () => {
  await app.model.Project.truncate();
  await app.model.Interface.truncate();
  await app.model.Scene.truncate();
  await app.model.Schema.truncate();
}
github macacajs / macaca-datahub / test / .setup.js View on Github external
const restore = async () => {
  await app.model.Project.truncate();
  await app.model.Interface.truncate();
  await app.model.Scene.truncate();
  await app.model.Schema.truncate();
}