Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ describe('visualize loader pipeline helpers: build pipeline', () => {
const actual = buildPipelineVisFunction.tagcloud({ params }, schemas);
expect(actual).toMatchSnapshot();
});

it('with boolean param showLabel', () => {
const schemas = { metric: [{ accessor: 0 }] };
const params = { showLabel: false };
const actual = buildPipelineVisFunction.tagcloud({ params }, schemas);
expect(actual).toMatchSnapshot();
});

});

describe('handles region_map function', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export const buildPipelineVisFunction: BuildPipelineVisFunction = {
if (maxFontSize) {
expr += `maxFontSize=${maxFontSize} `;
}
if (showLabel) {
if (showLabel !== undefined) {
expr += `showLabel=${showLabel} `;
}

Expand Down