actionhero
Version:
The reusable, scalable, and quick node.js API server for stateless and stateful applications
24 lines (18 loc) • 491 B
text/typescript
import { log, loggers, Process } from "./../../src/index";
const actionhero = new Process();
describe("Core", () => {
describe("log", () => {
beforeAll(async () => {
await actionhero.start();
});
afterAll(async () => {
await actionhero.stop();
});
test("the log method should work", () => {
log("hello");
});
test("the winston loggers are available via the export loggers", () => {
expect(loggers.length).toBe(2);
});
});
});