From c7e3ca6c8a6e56c57928812760ee25860ed325bb Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 30 Oct 2013 15:14:11 -0400 Subject: [PATCH] Spelling: Fix spelling errors * equal * existence * expectation * expected * intend * message * report * singular --- spec/console/ConsoleReporterSpec.js | 2 +- spec/core/EnvSpec.js | 10 +++++----- spec/core/ExpectationResultSpec.js | 2 +- spec/core/ExpectationSpec.js | 6 +++--- spec/core/SpySpec.js | 2 +- spec/core/matchers/matchersUtilSpec.js | 2 +- spec/core/matchers/toThrowErrorSpec.js | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/spec/console/ConsoleReporterSpec.js b/spec/console/ConsoleReporterSpec.js index 0749260a..608adc8e 100644 --- a/spec/console/ConsoleReporterSpec.js +++ b/spec/console/ConsoleReporterSpec.js @@ -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, diff --git a/spec/core/EnvSpec.js b/spec/core/EnvSpec.js index 6dd8673b..cc3d139c 100644 --- a/spec/core/EnvSpec.js +++ b/spec/core/EnvSpec.js @@ -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", diff --git a/spec/core/ExpectationResultSpec.js b/spec/core/ExpectationResultSpec.js index dc000cdd..5787827e 100644 --- a/spec/core/ExpectationResultSpec.js +++ b/spec/core/ExpectationResultSpec.js @@ -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'); }); diff --git a/spec/core/ExpectationSpec.js b/spec/core/ExpectationSpec.js index 4c6d6c17..3c32011e 100644 --- a/spec/core/ExpectationSpec.js +++ b/spec/core/ExpectationSpec.js @@ -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" }); }); diff --git a/spec/core/SpySpec.js b/spec/core/SpySpec.js index b80f390a..fae73549 100644 --- a/spec/core/SpySpec.js +++ b/spec/core/SpySpec.js @@ -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() { diff --git a/spec/core/matchers/matchersUtilSpec.js b/spec/core/matchers/matchersUtilSpec.js index 010a91c9..07d113d2 100644 --- a/spec/core/matchers/matchersUtilSpec.js +++ b/spec/core/matchers/matchersUtilSpec.js @@ -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); }); diff --git a/spec/core/matchers/toThrowErrorSpec.js b/spec/core/matchers/toThrowErrorSpec.js index 9a0d3659..9e55820e 100644 --- a/spec/core/matchers/toThrowErrorSpec.js +++ b/spec/core/matchers/toThrowErrorSpec.js @@ -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) },