Example #1
0
    it("implements format strings correctly", function () {
        logger.log("a-%s-b-%o-c")
        expect(exec).toHaveBeenCalledWith(null, null, "Logger", "logLevel", [logger.LOG, "a-%s-b-%o-c"]);

        logger.log("a-%s-b-%o-c", "xyz", {f:1, g:2})
        expect(exec).toHaveBeenCalledWith(null, null, "Logger", "logLevel", [logger.LOG, "a-xyz-b-{\"f\":1,\"g\":2}-c"]);
    })
Example #2
0
 it("implements log() correctly", function () {
     logger.log("1")
     expect(exec).toHaveBeenCalledWith(null, null, "Logger", "logLevel", [logger.LOG, "1"]);
 })
Example #3
0
 it("implements log() correctly", function () {
     logger.log("1")
     expect(loggedMessage).toBe("1")
 })