winston-cloud-logging
Version:
Cloud logging compatible logging with Winston
13 lines (12 loc) • 427 B
JavaScript
;
exports.__esModule = true;
var _1 = require(".");
var EXAMPLE_MESSAGE = "Example message";
describe("format", function () {
test("formats log info correctly", function () {
var info = { level: _1.WinstonLevel.Error, message: EXAMPLE_MESSAGE };
expect(_1.format().transform(info)).toBe(info);
// @ts-ignore
expect(info.severity).toBe(_1.CloudLoggingSeverity.Error);
});
});