Skip to content

Commit

Permalink
fix jest test for 7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 12, 2020
1 parent 868f55e commit 46ff2f4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ describe('get mapbox color expression', () => {
const dynamicStyleOptions = {
type: COLOR_MAP_TYPE.CATEGORICAL,
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toBeNull();
});

Expand All @@ -354,7 +354,7 @@ describe('get mapbox color expression', () => {
type: COLOR_MAP_TYPE.CATEGORICAL,
field: {},
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toBeNull();
});

Expand All @@ -366,7 +366,7 @@ describe('get mapbox color expression', () => {
name: 'myField',
},
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toBeNull();
});

Expand All @@ -378,7 +378,7 @@ describe('get mapbox color expression', () => {
},
colorCategory: 'palette_0',
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toEqual([
'match',
['to-string', ['get', 'myField']],
Expand All @@ -400,7 +400,7 @@ describe('get mapbox color expression', () => {
},
useCustomColorPalette: true,
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toBeNull();
});

Expand All @@ -413,7 +413,7 @@ describe('get mapbox color expression', () => {
useCustomColorPalette: true,
customColorPalette: [],
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toBeNull();
});

Expand All @@ -429,7 +429,7 @@ describe('get mapbox color expression', () => {
{ stop: 'MX', color: '#072f6b' },
],
};
const colorProperty = makeProperty(dynamicStyleOptions);
const colorProperty = makeProperty(dynamicStyleOptions, getCategoricalFieldMeta);
expect(colorProperty._getMbColor()).toEqual([
'match',
['to-string', ['get', 'myField']],
Expand Down

0 comments on commit 46ff2f4

Please sign in to comment.