Skip to content

Commit

Permalink
typescript(vx-geo): annotate types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed Oct 2, 2019
1 parent acfbfe3 commit 76282ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vx-geo/test/Projection.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from 'react';
import { shallow } from 'enzyme';
import { feature } from 'topojson-client';
import { GeometryCollection } from 'geojson';

import Projection from '../src/projections/Projection';
import topology from './topo.json';

describe('<Projection />', () => {
// TopoJSON with two polygons
const data = feature(topology, topology.objects.collection).features;
const data: GeometryCollection[] = feature(topology, topology.objects.collection).features;
const props = { data };

test('it should be defined', () => {
Expand Down

0 comments on commit 76282ec

Please sign in to comment.