FredericHeem/starhackit

View on GitHub
server/src/testApp.js

Summary

Maintainability
A
0 mins
Test Coverage
const App = require("./app");

describe("App", function () {
  before(async () => {});
  after(async () => {});
  beforeEach(async () => {});

  it("displayInfoEnv", async () => {
    let app = App();
    app.displayInfoEnv();
  });
  it.skip("start and stop ok", async () => {
    let app = App();
    await app.start();
    await app.stop();
  });
  it("start and stop with empty NODE_CONFIG", async () => {
    process.env["NODE_CONFIG"] = "{}";
    let app = App();
    app.displayInfoEnv();
  });
});