Skip to content

Commit

Permalink
chore(converter): correct spelling of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mamichels committed Jun 22, 2022
1 parent 962d586 commit 72aabfb
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 @@ -782,7 +782,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 @@ -796,7 +796,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 72aabfb

Please sign in to comment.