Skip to content

Commit

Permalink
fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Oct 11, 2023
1 parent d346a7b commit b2d5228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/orama/src/components/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const IS_ARRAY_TYPE: Record<SearchableType, boolean> = {
number: false,
boolean: false,
enum: false,
geopoint: false,
'string[]': true,
'number[]': true,
'boolean[]': true,
Expand Down
4 changes: 2 additions & 2 deletions packages/orama/tests/tree.bkd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ t.test('insert', t => {

insert(tree, { lat: 37.8207190397588, lon: -122.47838916631231 }, [ 1 ])
insert(tree, { lat: 37.8207190397588, lon: -122.47838916631231 }, [ 2 ])
insert(tree, { lat: 12.1234243234235, lon: -129.18923712312378 }, [ 3 ])
insert(tree, { lat: 12.1234243234235, lon: -122.1293 }, [ 3 ])

t.same(getDocIDsByCoordinates(tree, { lat: 37.8207190397588, lon: -122.47838916631231 }), [ 1, 2 ])
})
Expand Down Expand Up @@ -163,7 +163,7 @@ t.test('contains', t => {
}

t.same(contains(tree, { lat: 37.8207190397588, lon: -122.47838916631231 }), true)
t.same(contains(tree, { lat: 10.1927374719287, lon: -132.97841923929291 }), false)
t.same(contains(tree, { lat: 10.1927374719287, lon: -132.123 }), false)
})
})

Expand Down

0 comments on commit b2d5228

Please sign in to comment.