Skip to content

Commit

Permalink
Expect an undefined error to be passed to the expectation result
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Deckard committed Mar 24, 2017
1 parent 25d9a39 commit 90c8714
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions spec/core/ExpectationSpec.js
Expand Up @@ -113,6 +113,7 @@ describe("Expectation", function() {
matcherName: "toFoo",
passed: true,
message: "",
error: undefined,
expected: "hello",
actual: "an actual"
});
Expand Down Expand Up @@ -146,7 +147,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: "an actual",
message: ""
message: "",
error: undefined
});
});

Expand Down Expand Up @@ -179,7 +181,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: "an actual",
message: "I am a custom message"
message: "I am a custom message",
error: undefined
});
});

Expand Down Expand Up @@ -212,7 +215,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: "an actual",
message: "I am a custom message"
message: "I am a custom message",
error: undefined
});
});

Expand Down Expand Up @@ -244,6 +248,7 @@ describe("Expectation", function() {
matcherName: "toFoo",
passed: true,
message: "",
error: undefined,
expected: "hello",
actual: actual
});
Expand Down Expand Up @@ -279,7 +284,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: actual,
message: "default message"
message: "default message",
error: undefined
});
});

Expand Down Expand Up @@ -314,7 +320,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: actual,
message: "I am a custom message"
message: "I am a custom message",
error: undefined
});
});

Expand Down Expand Up @@ -345,7 +352,8 @@ describe("Expectation", function() {
passed: true,
expected: "hello",
actual: actual,
message: ""
message: "",
error: undefined
});
});

Expand Down Expand Up @@ -381,7 +389,8 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: actual,
message: "I'm a custom message"
message: "I'm a custom message",
error: undefined
});
});

Expand Down

0 comments on commit 90c8714

Please sign in to comment.