Skip to content

Commit

Permalink
chore(converter): correct spelling of error message (#1739)
Browse files Browse the repository at this point in the history
Co-authored-by: Denver Coneybeare <dconeybe@google.com>
Co-authored-by: Tom Andersen <tom-andersen@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 7, 2022
1 parent 983ab89 commit 973a199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/src/convert.ts
Expand Up @@ -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)}'.`
);
}

Expand Down
4 changes: 2 additions & 2 deletions dev/test/index.ts
Expand Up @@ -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_(
Expand All @@ -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(() => {
Expand Down

0 comments on commit 973a199

Please sign in to comment.