Skip to content

Commit 13e64a2

Browse files
mamichelsdconeybetom-andersen
authored
chore(converter): correct spelling of error message (#1739)
Co-authored-by: Denver Coneybeare <dconeybe@google.com> Co-authored-by: Tom Andersen <tom-andersen@users.noreply.github.com>
1 parent 91a7c8f commit 13e64a2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

handwritten/firestore/dev/src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export function detectValueType(proto: ProtobufJsValue): string {
154154

155155
if (detectedValues.length !== 1) {
156156
throw new Error(
157-
`Unable to infer type value fom '${JSON.stringify(proto)}'.`
157+
`Unable to infer type value from '${JSON.stringify(proto)}'.`
158158
);
159159
}
160160

handwritten/firestore/dev/test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ describe('snapshot_() method', () => {
817817
'1970-01-01T00:00:05.000000006Z',
818818
'json'
819819
);
820-
}).to.throw("Unable to infer type value fom '{}'.");
820+
}).to.throw("Unable to infer type value from '{}'.");
821821

822822
expect(() => {
823823
firestore.snapshot_(
@@ -831,7 +831,7 @@ describe('snapshot_() method', () => {
831831
'json'
832832
);
833833
}).to.throw(
834-
'Unable to infer type value fom \'{"stringValue":"bar","integerValue":42}\'.'
834+
'Unable to infer type value from \'{"stringValue":"bar","integerValue":42}\'.'
835835
);
836836

837837
expect(() => {

0 commit comments

Comments
 (0)