Skip to content

Commit

Permalink
Tests typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bendykowski committed Sep 30, 2017
1 parent f63531c commit df3380e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions test/MethodStub.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("ReturnValueMethodStub", () => {
expect(result).toBeTruthy();
});

it("returns false when arg doesnt match", () => {
it("returns false when arg doesn't match", () => {
// given
const testObj: ReturnValueMethodStub = new ReturnValueMethodStub(0, [strictEqual(10)], 50);

Expand All @@ -40,7 +40,7 @@ describe("ReturnValueMethodStub", () => {
expect(result).toBeTruthy();
});

it("returns false when first arg doesnt match", () => {
it("returns false when first arg doesn't match", () => {
// given
const firstValue = 10;
const secondValue = 20;
Expand All @@ -53,7 +53,7 @@ describe("ReturnValueMethodStub", () => {
expect(result).toBeFalsy();
});

it("returns false when second arg doesnt match", () => {
it("returns false when second arg doesn't match", () => {
// given
const firstValue = 10;
const secondValue = 20;
Expand All @@ -66,7 +66,7 @@ describe("ReturnValueMethodStub", () => {
expect(result).toBeFalsy();
});

it("returns false when both args doesnt match", () => {
it("returns false when both args doesn't match", () => {
// given
const firstValue = 10;
const secondValue = 20;
Expand Down
2 changes: 1 addition & 1 deletion test/recording.multiple.behaviors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("recording multiple behaviors", () => {
});
});

describe("when one of behaviors doesnt match", () => {
describe("when one of behaviors doesn't match", () => {
it("is skipped", () => {
// given
const sampleValue = 3;
Expand Down
6 changes: 3 additions & 3 deletions test/stubbing.method.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("mocking", () => {
expect(result).toEqual(expectedResult);
});

it("returns null if first param doesnt match", () => {
it("returns null if first param doesn't match", () => {
// given
const expectedResult = 999;
const firstNumber = 20;
Expand All @@ -70,7 +70,7 @@ describe("mocking", () => {
expect(result).toBeNull();
});

it("returns null if second param doesnt match", () => {
it("returns null if second param doesn't match", () => {
// given
const expectedResult = 999;
const firstNumber = 20;
Expand All @@ -84,7 +84,7 @@ describe("mocking", () => {
expect(result).toBeNull();
});

it("returns null if both params doesnt match", () => {
it("returns null if both params doesn't match", () => {
// given
const expectedResult = 999;
const firstNumber = 20;
Expand Down
22 changes: 11 additions & 11 deletions test/verification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("verifying mocked object", () => {

describe("when no calls are expected", () => {
describe("and no one occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;

Expand All @@ -33,7 +33,7 @@ describe("verifying mocked object", () => {
});

describe("and one occurred but with different argument", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue + 321);
Expand Down Expand Up @@ -69,7 +69,7 @@ describe("verifying mocked object", () => {

describe("when one call is expected", () => {
describe("and just one occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue);
Expand Down Expand Up @@ -110,7 +110,7 @@ describe("verifying mocked object", () => {

describe("when two calls are expected", () => {
describe("and just two occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue);
Expand Down Expand Up @@ -151,7 +151,7 @@ describe("verifying mocked object", () => {

describe("when three calls are expected", () => {
describe("and just three occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue);
Expand Down Expand Up @@ -196,7 +196,7 @@ describe("verifying mocked object", () => {

describe("when at least two calls are expected", () => {
describe("but three has occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue);
Expand Down Expand Up @@ -234,7 +234,7 @@ describe("verifying mocked object", () => {

describe("when at most two calls are expected", () => {
describe("but one has occurred", () => {
it("doesnt throw error", () => {
it("doesn't throw error", () => {
// given
const sampleValue = 3;
foo.convertNumberToString(sampleValue);
Expand Down Expand Up @@ -289,7 +289,7 @@ describe("verifying mocked object", () => {
describe("checking if method has been called before other", () => {
describe("when both of them are from same object", () => {
describe("and method with first param has been called before second", () => {
it("doesn`t throw error", () => {
it("doesn't throw error", () => {
// given
const firstCallParam = 5;
const secondCallParam = 10;
Expand Down Expand Up @@ -403,7 +403,7 @@ describe("verifying mocked object", () => {
describe("checking if method has been called after other", () => {
describe("when both of them are from same object", () => {
describe("and method with first param has been called after second", () => {
it("doesn`t throw error", () => {
it("doesn't throw error", () => {
// given
const firstCallParam = 5;
const secondCallParam = 10;
Expand Down Expand Up @@ -518,7 +518,7 @@ describe("verifying mocked object", () => {
describe("checking if method has been called before other", () => {
describe("when they are from different objects", () => {
describe("and method with first param has been called before second", () => {
it("doesn`t throw error", () => {
it("doesn't throw error", () => {
// given
const firstCallParam = 5;
const secondCallParam = 10;
Expand Down Expand Up @@ -632,7 +632,7 @@ describe("verifying mocked object", () => {
describe("checking if method has been called after other", () => {
describe("when they are from different objects", () => {
describe("and method with first param has been called after second", () => {
it("doesn`t throw error", () => {
it("doesn't throw error", () => {
// given
const firstCallParam = 5;
const secondCallParam = 10;
Expand Down

0 comments on commit df3380e

Please sign in to comment.