Skip to content

Commit

Permalink
Add Typescript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Nov 28, 2016
1 parent a59be43 commit 08cd708
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as meta from './index'
import * as meta from '../index'

const pointGeometry: GeoJSON.Point = {
type: 'Point',
Expand Down
8 changes: 8 additions & 0 deletions packages/turf-random/test/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as random from '../index'

const equals_1: GeoJSON.FeatureCollection<GeoJSON.Point> = random('points', 3, {bbox: [1, 2, 3, 4]})
const equals_2: GeoJSON.FeatureCollection<GeoJSON.Point> = random('point')
const equals_3: GeoJSON.FeatureCollection<GeoJSON.Point> = random()
const equals_4: GeoJSON.FeatureCollection<GeoJSON.Point> = random(undefined)
const equals_5: GeoJSON.FeatureCollection<GeoJSON.Polygon> = random('polygon')
const equals_6: GeoJSON.FeatureCollection<GeoJSON.Polygon> = random('polygon')

0 comments on commit 08cd708

Please sign in to comment.