From 973a19945e3132a923e20e57e85ef0b050d0de18 Mon Sep 17 00:00:00 2001 From: mamichels <48212402+mamichels@users.noreply.github.com> Date: Fri, 7 Oct 2022 22:36:05 +0200 Subject: [PATCH] chore(converter): correct spelling of error message (#1739) Co-authored-by: Denver Coneybeare Co-authored-by: Tom Andersen --- dev/src/convert.ts | 2 +- dev/test/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/src/convert.ts b/dev/src/convert.ts index f8ea9e99b..954fcbce0 100644 --- a/dev/src/convert.ts +++ b/dev/src/convert.ts @@ -154,7 +154,7 @@ export function detectValueType(proto: ProtobufJsValue): string { if (detectedValues.length !== 1) { throw new Error( - `Unable to infer type value fom '${JSON.stringify(proto)}'.` + `Unable to infer type value from '${JSON.stringify(proto)}'.` ); } diff --git a/dev/test/index.ts b/dev/test/index.ts index 67184cef6..4fa7d6e93 100644 --- a/dev/test/index.ts +++ b/dev/test/index.ts @@ -817,7 +817,7 @@ describe('snapshot_() method', () => { '1970-01-01T00:00:05.000000006Z', 'json' ); - }).to.throw("Unable to infer type value fom '{}'."); + }).to.throw("Unable to infer type value from '{}'."); expect(() => { firestore.snapshot_( @@ -831,7 +831,7 @@ describe('snapshot_() method', () => { 'json' ); }).to.throw( - 'Unable to infer type value fom \'{"stringValue":"bar","integerValue":42}\'.' + 'Unable to infer type value from \'{"stringValue":"bar","integerValue":42}\'.' ); expect(() => {