Skip to content

Commit 9418a20

Browse files
committed
add displayName to test
1 parent 466251c commit 9418a20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/__tests__/unpackPlotProps-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
import {computeCustomConfigVisibility} from '../index';
22
import {Component} from 'react';
3+
34
class ColorscalePicker extends Component {
45
render() {
56
return null;
67
}
78
}
9+
ColorscalePicker.displayName = 'ColorscalePicker';
10+
811
class AnotherPicker extends Component {
912
render() {
1013
return null;
1114
}
1215
}
16+
AnotherPicker.displayName = 'AnotherPicker';
1317

1418
const validate = (string, expected, config, wrappedComponent) => {
1519
const isVisible = computeCustomConfigVisibility({attr: string}, 'red', config, wrappedComponent);
@@ -79,7 +83,7 @@ describe('computeCustomConfigVisibility', () => {
7983
{
8084
type: 'attrName',
8185
regex_match: 'marker.color',
82-
exceptions: [{type: 'controlType', regex_match: 'ColorscalePicker'}],
86+
exceptions: [{type: 'controlType', regex_match: '^ColorscalePicker$'}],
8387
},
8488
],
8589
},

0 commit comments

Comments
 (0)