1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

LibJS: Change wording of ErrorType::NotA to be independent of context

Currently, we have NotA and NotAn, to be used dependent on whether the
following word begins with a vowel or not. To avoid this, change the
wording on NotA to be independent of this context.
This commit is contained in:
Timothy Flynn 2021-09-11 15:00:40 -04:00 committed by Andreas Kling
parent 0398089275
commit 76589d6728
169 changed files with 171 additions and 171 deletions

View file

@ -14,7 +14,7 @@ describe("errors", () => {
test("this value must be a Temporal.Calendar object", () => {
expect(() => {
Temporal.Calendar.prototype.era.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
});
test("argument must be date-like", () => {

View file

@ -14,7 +14,7 @@ describe("errors", () => {
test("this value must be a Temporal.Calendar object", () => {
expect(() => {
Temporal.Calendar.prototype.eraYear.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
});
test("argument must be date-like", () => {

View file

@ -27,7 +27,7 @@ describe("errors", () => {
test("this value must be a Temporal.Calendar object", () => {
expect(() => {
Temporal.Calendar.prototype.fields.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
});
test("iterator values must be strings", () => {

View file

@ -35,7 +35,7 @@ describe("errors", () => {
test("this value must be a Temporal.Calendar object", () => {
expect(() => {
Temporal.Calendar.prototype.mergeFields.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
});
test("fields argument must be coercible to object", () => {

View file

@ -13,6 +13,6 @@ describe("errors", () => {
test("this value must be a Temporal.Calendar object", () => {
expect(() => {
Temporal.Calendar.prototype.toString.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
});
});