File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class VectorValue {
53
53
/** Returns a JSON-serializable representation of this `VectorValue` instance. */
54
54
toJSON ( ) : object {
55
55
return {
56
- type : 'firestore/vectorValue /1.0' ,
56
+ type : 'firestore/vectorvalue /1.0' ,
57
57
vectorValues : this . _values
58
58
} ;
59
59
}
@@ -72,8 +72,8 @@ export class VectorValue {
72
72
if ( typeof value !== 'string' ) {
73
73
error = `json field 'type' must be a string.` ;
74
74
break ;
75
- } else if ( value !== 'firestore/vectorValue /1.0' ) {
76
- error = "Expected 'type' field to equal 'firestore/vectorValue /1.0'" ;
75
+ } else if ( value !== 'firestore/vectorvalue /1.0' ) {
76
+ error = "Expected 'type' field to equal 'firestore/vectorvalue /1.0'" ;
77
77
break ;
78
78
}
79
79
} else {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ describe('VectorValue', () => {
29
29
} ) ;
30
30
31
31
it ( 'fromJSON parameter order does not matter' , ( ) => {
32
- const type = 'firestore/vectorValue /1.0' ;
32
+ const type = 'firestore/vectorvalue /1.0' ;
33
33
const vectorValues = [ 1 , 2 , 3 ] ;
34
34
const control = new VectorValue ( vectorValues ) ;
35
35
@@ -44,15 +44,15 @@ describe('VectorValue', () => {
44
44
} ) ;
45
45
46
46
it ( 'fromJSON empty array does not throw' , ( ) => {
47
- const type = 'firestore/vectorValue /1.0' ;
47
+ const type = 'firestore/vectorvalue /1.0' ;
48
48
const vectorValues = [ 1 , 2 , 3 ] ;
49
49
expect ( ( ) => {
50
50
VectorValue . fromJSON ( { type, vectorValues } ) ;
51
51
} ) . to . not . throw ;
52
52
} ) ;
53
53
54
54
it ( 'fromJSON missing fields throws' , ( ) => {
55
- const type = 'firestore/vectorValue /1.0' ;
55
+ const type = 'firestore/vectorvalue /1.0' ;
56
56
const vectorValues = [ 1 , 2 , 3 ] ;
57
57
expect ( ( ) => {
58
58
VectorValue . fromJSON ( { type /* missing data */ } ) ;
You can’t perform that action at this time.
0 commit comments