Use American English spelling throughout
This commit is contained in:
@@ -243,7 +243,7 @@ describe("updateEvent, per occurrence", () => {
|
||||
});
|
||||
|
||||
describe("isThisAndFutureRefusal", () => {
|
||||
it("recognises the refusal worth offering the series for", () => {
|
||||
it("recognizes the refusal worth offering the series for", () => {
|
||||
expect(isThisAndFutureRefusal(new CalendarSetError({
|
||||
type: "invalidProperties",
|
||||
description: "Occurrences of a this-and-future change cannot be modified individually.",
|
||||
|
||||
@@ -264,7 +264,7 @@ describe("importing a file bigger than the server will take at once", () => {
|
||||
* Re-importing the same file.
|
||||
*
|
||||
* The import kept the file's own UID from the day it was written, which is the
|
||||
* whole of what is needed to recognise an event that is already here -- and
|
||||
* whole of what is needed to recognize an event that is already here -- and
|
||||
* nothing looked. Importing an export twice left second copies of everything,
|
||||
* which the reporter's colleague hit during testing (#173, decided there:
|
||||
* "duplicate checks on UIDs if UID present in event"). Issue #222 made that a
|
||||
|
||||
@@ -35,7 +35,7 @@ describe("applyLang", () => {
|
||||
expect(document.documentElement.lang).toBe("en");
|
||||
});
|
||||
|
||||
it("serves every language whose catalogue is shipped", () => {
|
||||
it("serves every language whose catalog is shipped", () => {
|
||||
for (const l of UI_LANGUAGES) {
|
||||
applyLang({ ...DEFAULT_SETTINGS, uiLanguage: l.tag });
|
||||
expect(document.documentElement.lang).toBe(l.tag);
|
||||
|
||||
@@ -92,7 +92,7 @@ describe("importing an LDIF address book", () => {
|
||||
const uids = Object.values(sets[0]!.create!).map((c) => c.uid as string);
|
||||
expect(new Set(uids).size).toBe(2);
|
||||
// Namespaced, so it is never mistaken for a UID a vCard author meant, and
|
||||
// stable, so importing the same file again recognises these.
|
||||
// stable, so importing the same file again recognizes these.
|
||||
expect(uids.every((u) => u.startsWith("urn:x-ihasmail:ldif:"))).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ describe("telling somebody what an LDIF re-import duplicated", () => {
|
||||
expect(r.alike).toBe(0);
|
||||
});
|
||||
|
||||
it("recognises a match on a second address", async () => {
|
||||
it("recognizes a match on a second address", async () => {
|
||||
server([card("c1", "Jane Doe", "[email protected]", "[email protected]")]);
|
||||
const r = await useContacts.getState().importLdif(entry("Jane Doe", "[email protected]"), "book1");
|
||||
expect(r.alike).toBe(1);
|
||||
|
||||
@@ -19,13 +19,13 @@ describe("isRecurring", () => {
|
||||
// and a base that is a different id. Neither makes it a series.
|
||||
expect(isRecurring(ev({ id: "eaaaaai", baseEventId: "i" }))).toBe(false);
|
||||
});
|
||||
it("recognises a series by its rule, under either name", () => {
|
||||
it("recognizes a series by its rule, under either name", () => {
|
||||
expect(isRecurring(ev({ recurrenceRules: [{ "@type": "RecurrenceRule", frequency: "weekly" }] }))).toBe(true);
|
||||
expect(isRecurring(ev({ excludedRecurrenceRules: [{ "@type": "RecurrenceRule", frequency: "monthly" }] }))).toBe(true);
|
||||
// Stalwart 0.16 keeps a single rule under the singular name.
|
||||
expect(isRecurring(ev({ recurrenceRule: { "@type": "RecurrenceRule", frequency: "weekly", count: 3 } }))).toBe(true);
|
||||
});
|
||||
it("recognises an occurrence, which arrives with no rule of its own", () => {
|
||||
it("recognizes an occurrence, which arrives with no rule of its own", () => {
|
||||
// A live 0.16.19 expands a weekly series into instances like this: an id
|
||||
// per occurrence, a recurrenceId, and no rule attached.
|
||||
expect(isRecurring(ev({ id: "iaaaaas", recurrenceId: "2030-03-11T10:00:00" }))).toBe(true);
|
||||
|
||||
@@ -73,7 +73,7 @@ describe("replying to a message somebody sent me", () => {
|
||||
expect(addrs(d.cc)).toEqual([BOB.email]);
|
||||
});
|
||||
|
||||
it("honours the sender's Reply-To, which is what it is for", async () => {
|
||||
it("honors the sender's Reply-To, which is what it is for", async () => {
|
||||
const d = await draftFor({ ...HERS, replyTo: [{ name: null, email: "[email protected]" }] } as Email, "reply");
|
||||
expect(addrs(d.to)).toEqual(["[email protected]"]);
|
||||
});
|
||||
@@ -105,7 +105,7 @@ describe("replying to a message I sent", () => {
|
||||
expect(addrs(d.cc)).toEqual([BOB.email]);
|
||||
});
|
||||
|
||||
it("recognises my address however the identity stored it", async () => {
|
||||
it("recognizes my address however the identity stored it", async () => {
|
||||
// A hand-typed identity address can carry whitespace, and comparing
|
||||
// strings rather than addresses made that enough to break the reply.
|
||||
const padded = [{ id: "i1", name: "John", email: " [email protected] " }] as unknown as Identity[];
|
||||
|
||||
@@ -111,7 +111,7 @@ describe("reconcile", () => {
|
||||
expect(useScheduled.getState().pending).toEqual({});
|
||||
});
|
||||
|
||||
it("returns a message cancelled elsewhere to Drafts, as a draft again", async () => {
|
||||
it("returns a message canceled elsewhere to Drafts, as a draft again", async () => {
|
||||
const s = server(["e1"], [{ id: "s1", emailId: "e1", sendAt: FUTURE, undoStatus: "canceled" }]);
|
||||
await useScheduled.getState().reconcile();
|
||||
expect(moved(s.updates[0]!.e1!)).toEqual({ into: DRAFTS, outOf: SCHED });
|
||||
@@ -156,7 +156,7 @@ describe("reconcile", () => {
|
||||
});
|
||||
|
||||
it("keeps a message whose live hold was moved earlier than the one it replaced", async () => {
|
||||
// Rescheduling to a sooner time leaves the cancelled submission holding the
|
||||
// Rescheduling to a sooner time leaves the canceled submission holding the
|
||||
// later sendAt. Going by timestamp alone would file a message back to
|
||||
// Drafts while the queue still has it.
|
||||
const s = server(
|
||||
|
||||
Reference in New Issue
Block a user