Skip to content

Commit b2afd48

Browse files
committed
spec: add test case for geopoint constructor
1 parent 5f3ddc4 commit b2afd48

File tree

3 files changed

+62
-58
lines changed

3 files changed

+62
-58
lines changed

package-lock.json

Lines changed: 55 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@
3333
"license": "ISC",
3434
"peerDependencies": {
3535
"rxjs": "^6.2.1",
36-
"firebase": "5.2.0"
36+
"firebase": "^5.2.0"
3737
},
3838
"devDependencies": {
39-
"rxjs": "^6.2.1",
40-
"rxjs-compat": "^6.2.1",
39+
"@firebase/firestore-types": "^0.4.3",
4140
"@turf/bearing": "^6.0.1",
4241
"@turf/distance": "^6.0.1",
43-
"@firebase/firestore-types": "^0.4.3",
4442
"@turf/turf": "^5.1.6",
4543
"@types/chance": "^1.0.1",
4644
"@types/faker": "^4.1.2",
@@ -51,7 +49,7 @@
5149
"@types/turf": "^3.5.32",
5250
"chance": "^1.0.16",
5351
"faker": "^4.1.0",
54-
"firebase": "^5.2.0",
52+
"firebase": "^5.4.1",
5553
"jest": "^23.3.0",
5654
"lodash": "^4.17.10",
5755
"rollup": "0.57.1",
@@ -61,6 +59,8 @@
6159
"rollup-plugin-sizes": "^0.4.2",
6260
"rollup-plugin-typescript2": "0.12.0",
6361
"rollup-plugin-uglify": "^3.0.0",
62+
"rxjs": "^6.2.1",
63+
"rxjs-compat": "^6.2.1",
6464
"ts-jest": "^23.0.0",
6565
"ts-loader": "3.5.0",
6666
"ts-node": "5.0.1",
@@ -83,4 +83,4 @@
8383
"node"
8484
]
8585
}
86-
}
86+
}

spec/main.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('RxGeofire', () => {
3838
test('should initilize with accessors', () => {
3939
expect(point).toBeInstanceOf(GeoFirePoint);
4040
expect(point.geoPoint).toBeInstanceOf(firebase.firestore.GeoPoint);
41+
expect(point.data.geopoint).toBeInstanceOf(firebase.firestore.GeoPoint);
4142
});
4243

4344
test('should create a GeoHash', () => {

0 commit comments

Comments
 (0)