1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

Everywhere: Fix typos

Mostly in comments, but sprintf() now prints "August" instead of
"Auguest" so that's something.
This commit is contained in:
Nico Weber 2020-10-02 09:59:28 -04:00 committed by Andreas Kling
parent 7399874479
commit ef1b21004f
28 changed files with 39 additions and 39 deletions

View file

@ -33,7 +33,7 @@ test("item added to array before exhaustion is accessible", () => {
expect(it.next()).toEqual({ value: undefined, done: true });
});
test("item added to array after exhaustion is inaccesible", () => {
test("item added to array after exhaustion is inaccessible", () => {
const a = [1, 2];
const it = a.values();
expect(it.next()).toEqual({ value: 1, done: false });

View file

@ -3,7 +3,7 @@ describe("correct behavior", () => {
expect(typeof 1n).toBe("bigint");
});
test("bigint string coersion", () => {
test("bigint string coercion", () => {
expect("" + 123n).toBe("123");
});

View file

@ -10,7 +10,7 @@ test("regular exponentiation", () => {
expect((2 ** 3) ** 2).toBe(64);
});
test("exponentation with negatives", () => {
test("exponentiation with negatives", () => {
expect(2 ** -3).toBe(0.125);
expect((-2) ** 3).toBe(-8);
@ -18,7 +18,7 @@ test("exponentation with negatives", () => {
// expect("-2 ** 3").not.toEval();
});
test("exponentation with non-numeric primitives", () => {
test("exponentiation with non-numeric primitives", () => {
expect("2" ** "3").toBe(8);
expect("" ** []).toBe(1);
expect([] ** null).toBe(1);
@ -26,7 +26,7 @@ test("exponentation with non-numeric primitives", () => {
expect(undefined ** null).toBe(1);
});
test("exponentation that produces NaN", () => {
test("exponentiation that produces NaN", () => {
expect(NaN ** 2).toBeNaN();
expect(2 ** NaN).toBeNaN();
expect(undefined ** 2).toBeNaN();

View file

@ -110,7 +110,7 @@ test("arrow functions in objects", () => {
expect(foobar.x.z()).toBe(foobar.x);
});
test("strict mode propogation", () => {
test("strict mode propagation", () => {
(() => {
"use strict";
expect(isStrictMode()).toBeTrue();

View file

@ -106,7 +106,7 @@ test("parameter with a function default value", () => {
expect(arrowFunc(() => 10)).toBe(10);
});
test("parameter with an arrow function default vlaue", () => {
test("parameter with an arrow function default value", () => {
function func(a = () => 5) {
return a();
}

View file

@ -30,7 +30,7 @@ test("use strict with double quotes after statement does not yield strict mode c
expect(isStrictMode()).toBeFalse();
});
test("strict mode propogates down the scope chain", () => {
test("strict mode propagates down the scope chain", () => {
"use strict";
expect(isStrictMode()).toBeTrue();
(function() {
@ -38,7 +38,7 @@ test("strict mode propogates down the scope chain", () => {
})();
});
test("strict mode does not propogate up the scope chain", () => {
test("strict mode does not propagate up the scope chain", () => {
expect(isStrictMode()).toBeFalse();
(function() {
"use strict";

View file

@ -42,7 +42,7 @@ test("item added to array before exhaustion is accessible", () => {
expect(it.next()).toEqual({ value: undefined, done: true });
});
test("item added to array after exhaustion is inaccesible", () => {
test("item added to array after exhaustion is inaccessible", () => {
const a = [1, 2];
const it = a[Symbol.iterator]();
expect(it.next()).toEqual({ value: 1, done: false });