Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-5723 Update logger unit tests
  • Loading branch information
bryanhiggins committed Jan 3, 2014
1 parent d17905c commit e8ed2df6c2f008b45fc5f1af8bbaa6e88ad8b13f
Showing 1 changed file with 5 additions and 5 deletions.
@@ -42,7 +42,7 @@ describe("logger", function () {

it("logs messages", function () {
logger.log("Hulk Smash!");
expect(console.log).toHaveBeenCalledWith("[BUILD] Hulk Smash!");
expect(console.log).toHaveBeenCalledWith("[INFO] Hulk Smash!");
});
});

@@ -68,9 +68,9 @@ describe("logger", function () {
expect(console.log).toHaveBeenCalledWith("[WARN] beware the ides of march");
});

it("logs messages", function () {
it("doesn't log messages", function () {
logger.log("Hulk Smash!");
expect(console.log).toHaveBeenCalledWith("[BUILD] Hulk Smash!");
expect(console.log).not.toHaveBeenCalledWith("[INFO] Hulk Smash!");
});
});

@@ -96,9 +96,9 @@ describe("logger", function () {
expect(console.log).not.toHaveBeenCalledWith("[WARN] beware the ides of march");
});

it("logs messages", function () {
it("doesn't log messages", function () {
logger.log("Hulk Smash!");
expect(console.log).toHaveBeenCalledWith("[BUILD] Hulk Smash!");
expect(console.log).not.toHaveBeenCalledWith("[INFO] Hulk Smash!");
});
});
});

0 comments on commit e8ed2df

Please sign in to comment.