Spelling: Fix spelling errors

* equal
* existence
* expectation
* expected
* intend
* message
* report
* singular
This commit is contained in:
Josh Soref
2013-10-30 15:14:11 -04:00
parent a2debf60b6
commit c7e3ca6c8a
7 changed files with 13 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ describe("ConsoleReporter", function() {
expect(out.getOutput()).toEqual("*");
});
it("reports a summary when done (singluar spec and time)", function() {
it("reports a summary when done (singular spec and time)", function() {
var timerSpy = jasmine.createSpyObj('timer', ['start', 'elapsed']),
reporter = new j$.ConsoleReporter({
print: out.print,

View File

@@ -33,13 +33,13 @@ describe("Env", function() {
});
describe("#spyOn", function() {
it("checks for the existance of the object", function() {
it("checks for the existence of the object", function() {
expect(function() {
env.spyOn(void 0, 'pants');
}).toThrowError(/could not find an object/);
});
it("checks for the existance of the method", function() {
it("checks for the existence of the method", function() {
var subject = {};
expect(function() {
@@ -460,7 +460,7 @@ describe("Env integration", function() {
it("Custom equality testers should be per spec", function(done) {
var env = new j$.Env({global: { setTimeout: setTimeout }}),
reporter = jasmine.createSpyObj('fakeReproter', [
reporter = jasmine.createSpyObj('fakeReporter', [
"jasmineStarted",
"jasmineDone",
"suiteStarted",
@@ -500,7 +500,7 @@ describe("Env integration", function() {
matchers = {
toFoo: function() {}
},
reporter = jasmine.createSpyObj('fakeReproter', [
reporter = jasmine.createSpyObj('fakeReporter', [
"jasmineStarted",
"jasmineDone",
"suiteStarted",
@@ -527,7 +527,7 @@ describe("Env integration", function() {
it("Custom equality testers for toContain should be per spec", function(done) {
var env = new j$.Env({global: { setTimeout: setTimeout }}),
reporter = jasmine.createSpyObj('fakeReproter', [
reporter = jasmine.createSpyObj('fakeReporter', [
"jasmineStarted",
"jasmineDone",
"suiteStarted",

View File

@@ -9,7 +9,7 @@ describe("buildExpectationResult", function() {
expect(result.message).toBe('Passed.');
});
it("message returns the message for failing expecations", function() {
it("message returns the message for failing expectations", function() {
var result = j$.buildExpectationResult({passed: false, message: 'some-value'});
expect(result.message).toBe('some-value');
});

View File

@@ -46,7 +46,7 @@ describe("Expectation", function() {
expect(expectation.toFoo).toBeUndefined();
});
it("Factory builds an expectaion/negative expectation", function() {
it("Factory builds an expectation/negative expectation", function() {
var builtExpectation = j$.Expectation.Factory();
expect(builtExpectation instanceof j$.Expectation).toBe(true);
@@ -254,7 +254,7 @@ describe("Expectation", function() {
}
},
util = {
buildFailureMessage: function() { return "default messge"; }
buildFailureMessage: function() { return "default message"; }
},
addExpectationResult = jasmine.createSpy("addExpectationResult"),
actual = "an actual",
@@ -277,7 +277,7 @@ describe("Expectation", function() {
passed: false,
expected: "hello",
actual: actual,
message: "default messge"
message: "default message"
});
});

View File

@@ -14,7 +14,7 @@ describe('Spies', function () {
expect(spy.bob).toEqual("test");
});
it("warns the user that we indend to overwrite an existing property", function() {
it("warns the user that we intend to overwrite an existing property", function() {
TestClass.prototype.someFunction.and = "turkey";
expect(function() {

View File

@@ -1,6 +1,6 @@
describe("matchersUtil", function() {
describe("equals", function() {
it("passes for literals that are threequal", function() {
it("passes for literals that are tripple-equal", function() {
expect(j$.matchersUtil.equals(null, null)).toBe(true);
expect(j$.matchersUtil.equals(void 0, void 0)).toBe(true);
});

View File

@@ -246,7 +246,7 @@ describe("toThrowError", function() {
expect(result.message).toEqual("Expected function to throw TypeError with message \"bar\", but it threw TypeError with message \"foo\".");
});
it("passes if thrown is a type of Error and has the same type as the expected Error and the message matches the exepcted message", function() {
it("passes if thrown is a type of Error and has the same type as the expected Error and the message matches the expected message", function() {
var util = {
equals: jasmine.createSpy('delegated-equal').and.returnValue(true)
},