Skip to content

Commit 8010058

Browse files
author
Alex Perkins
committed
Fix typos.
1 parent 7a370ed commit 8010058

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ch04/jest/ch04.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Chapter 4', function () {
8080
});
8181

8282

83-
test("Compsition", function () {
83+
test("Composition", function () {
8484
const str = `We can only see a short distance ahead but we can see plenty there that needs to be done`;
8585
const explode = (str) => str.split(/\s+/);
8686
const count = (arr) => arr.length;
@@ -89,7 +89,7 @@ describe('Chapter 4', function () {
8989
});
9090

9191

92-
test("More compsition", function () {
92+
test("More composition", function () {
9393
const trim = (str) => str.replace(/^\s*|\s*$/g, '');
9494
const normalize = (str) => str.replace(/\-/g, '');
9595
const validLength = (param, str) => str.length === param;

src/ch04/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ QUnit.test("Extending the core language", function () {
8181
});
8282

8383

84-
QUnit.test("Compsition", function () {
84+
QUnit.test("Composition", function () {
8585
const str = `We can only see a short distance ahead but we can see plenty there that needs to be done`;
8686
const explode = (str) => str.split(/\s+/);
8787
const count = (arr) => arr.length;
@@ -90,7 +90,7 @@ QUnit.test("Compsition", function () {
9090
});
9191

9292

93-
QUnit.test("More compsition", function () {
93+
QUnit.test("More composition", function () {
9494
const trim = (str) => str.replace(/^\s*|\s*$/g, '');
9595
const normalize = (str) => str.replace(/\-/g, '');
9696
const validLength = (param, str) => str.length === param;

0 commit comments

Comments
 (0)