Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit aae247d

Browse files
author
Hans Kristian Flaatten
committed
Propper assert for float values
1 parent 4dfef7a commit aae247d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/suite.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ describe 'customBBOX()', ->
2424
[0, 3]
2525
[0, 1]
2626
]]
27+
for pair in query.geojson.$geoWithin.$geometry.coordinates[0]
28+
assert.equal typeof val, 'number' for val in pair
2729

2830
describe 'customNear()', ->
2931
it 'should not genearate $near query for invalid point', ->
@@ -36,6 +38,7 @@ describe 'customNear()', ->
3638
assert.deepEqual query, geojson: $near: $geometry:
3739
type: 'Point'
3840
coordinates: [0, 1]
41+
assert.equal typeof val, 'number' for val in query.geojson.$near.$geometry.coordinates
3942

4043
describe 'customAfter()', ->
4144
it 'should not generate after query for invalid date', ->

0 commit comments

Comments
 (0)