UNPKG

winston-cloud-logging

Version:
13 lines (12 loc) 427 B
"use strict"; 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); }); });