Skip to content

Commit cceb463

Browse files
committed
lowercase word 'when' in collection utils tests
1 parent 78e650d commit cceb463

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/utilities/collection-utils.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ describe("CollectionUtils", () => {
326326
type TestType = { id: number };
327327
const selector = (t: TestType) => t.id;
328328

329-
it("When collections are different lengths, then returns false", () => {
329+
it("when collections are different lengths, then returns false", () => {
330330
// Arrange
331331
const arr1: Array<TestType> = [{ id: 1 }, { id: 2 }];
332332
const arr2: Array<TestType> = [{ id: 1 }];
@@ -338,7 +338,7 @@ describe("CollectionUtils", () => {
338338
expect(result).toBe(false);
339339
});
340340

341-
it("When one of the collections is null, then returns false", () => {
341+
it("when one of the collections is null, then returns false", () => {
342342
// Arrange
343343
const arr1: Array<TestType> = [{ id: 1 }, { id: 2 }];
344344

@@ -349,7 +349,7 @@ describe("CollectionUtils", () => {
349349
expect(result).toBe(false);
350350
});
351351

352-
it("When both collections are null, then returns true", () => {
352+
it("when both collections are null, then returns true", () => {
353353
// Act
354354
const result = CollectionUtils.equalsBy(
355355
selector,
@@ -361,7 +361,7 @@ describe("CollectionUtils", () => {
361361
expect(result).toBe(true);
362362
});
363363

364-
it("When collections are equal size but contain different elements, then returns false", () => {
364+
it("when collections are equal size but contain different elements, then returns false", () => {
365365
// Arrange
366366
const arr1: Array<TestType> = [{ id: 1 }, { id: 2 }];
367367
const arr2: Array<TestType> = [{ id: 2 }, { id: 3 }];
@@ -373,7 +373,7 @@ describe("CollectionUtils", () => {
373373
expect(result).toBe(false);
374374
});
375375

376-
it("When collections are identical, then returns true", () => {
376+
it("when collections are identical, then returns true", () => {
377377
// Arrange
378378
const arr1: Array<TestType> = [{ id: 1 }, { id: 2 }];
379379
const arr2: Array<TestType> = [...arr1];
@@ -387,7 +387,7 @@ describe("CollectionUtils", () => {
387387
});
388388

389389
describe("#removeElementAt", () => {
390-
it("When index i < 0, returns source array", () => {
390+
it("when index i < 0, returns source array", () => {
391391
// Arrange
392392
const arr = ["one", "two", "three"];
393393
const expected = [...arr];
@@ -399,7 +399,7 @@ describe("CollectionUtils", () => {
399399
expect(result).toStrictEqual(expected);
400400
});
401401

402-
it("When index > array.length, returns source array", () => {
402+
it("when index > array.length, returns source array", () => {
403403
// Arrange
404404
const arr = ["one", "two", "three"];
405405
const expected = [...arr];
@@ -411,7 +411,7 @@ describe("CollectionUtils", () => {
411411
expect(result).toStrictEqual(expected);
412412
});
413413

414-
it("When index is in range, then removes element at index", () => {
414+
it("when index is in range, then removes element at index", () => {
415415
// Arrange
416416
const arr = ["one", "two", "three"];
417417
const expected = ["one", "three"];

0 commit comments

Comments
 (0)