Skip to content

Commit 4d65897

Browse files
committed
type
1 parent db1e932 commit 4d65897

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/validate/validate_projection.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ describe('Validate projection', () => {
2727
});
2828

2929
test('Should pass if everything is according to spec', () => {
30-
let errors = validateProjection({validateSpec, value: {'mode': ['step', ['zoom'], 'globe', 10, 'mercator']}, styleSpec: v8, style: {} as any});
30+
let errors = validateProjection({validateSpec, value: {'type': ['step', ['zoom'], 'globe', 10, 'mercator']}, styleSpec: v8, style: {} as any});
3131
expect(errors).toHaveLength(0);
32-
errors = validateProjection({validateSpec, value: {'mode': ['mercator', 'mercator', 0.3]}, styleSpec: v8, style: {} as any});
32+
errors = validateProjection({validateSpec, value: {'type': ['mercator', 'mercator', 0.3]}, styleSpec: v8, style: {} as any});
3333
expect(errors).toHaveLength(0);
34-
errors = validateProjection({validateSpec, value: {'mode': 'mercator'}, styleSpec: v8, style: {} as any});
34+
errors = validateProjection({validateSpec, value: {'type': 'mercator'}, styleSpec: v8, style: {} as any});
3535
expect(errors).toHaveLength(0);
36-
errors = validateProjection({validateSpec, value: {'mode': ['interpolate-projection', ['linear'], ['zoom'], 0, 'mercator', 5, 'globe']}, styleSpec: v8, style: {} as any});
36+
errors = validateProjection({validateSpec, value: {'type': ['interpolate-projection', ['linear'], ['zoom'], 0, 'mercator', 5, 'globe']}, styleSpec: v8, style: {} as any});
3737
expect(errors).toHaveLength(0);
3838

3939
});

0 commit comments

Comments
 (0)