Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Jan 24, 2023
1 parent 06760a1 commit 1f2694e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.

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 @@ -34,6 +34,8 @@ jest.mock('uuid', () => ({
v4: jest
.fn()
.mockReturnValueOnce('d594baeb-5eca-480c-8885-ba79eaf41372')
.mockReturnValueOnce('c604baeb-5eca-480c-8885-ba79eaf41372')
.mockReturnValueOnce('e614baeb-5eca-480c-8885-ba79eaf41372')
.mockReturnValue('1dd5663b-f062-43f8-8688-fc8166c2ca8e'),
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const getRiskScoreOverTimeAreaAttributes: GetLensAttributes = (
) => {
const layerIds = [uuidv4(), uuidv4()];
const internalReferenceId = uuidv4();
const layer2ColumnId = uuidv4();
return {
title: `${stackByField} risk score over time`,
description: '',
Expand Down Expand Up @@ -45,10 +46,10 @@ export const getRiskScoreOverTimeAreaAttributes: GetLensAttributes = (
{
layerId: layerIds[1],
layerType: 'referenceLine',
accessors: ['69f92e26-0438-40b7-8bba-cbf48d336d6c'],
accessors: [layer2ColumnId],
yConfig: [
{
forAccessor: '69f92e26-0438-40b7-8bba-cbf48d336d6c',
forAccessor: layer2ColumnId,
axisMode: 'right',
lineWidth: 2,
color: '#aa6556',
Expand Down Expand Up @@ -136,7 +137,7 @@ export const getRiskScoreOverTimeAreaAttributes: GetLensAttributes = (
[layerIds[1]]: {
linkToLayers: [],
columns: {
'69f92e26-0438-40b7-8bba-cbf48d336d6c': {
[layer2ColumnId]: {
label: 'Risky threshold',
dataType: 'number',
operationType: 'static_value',
Expand All @@ -150,7 +151,7 @@ export const getRiskScoreOverTimeAreaAttributes: GetLensAttributes = (
customLabel: true,
},
},
columnOrder: ['69f92e26-0438-40b7-8bba-cbf48d336d6c'],
columnOrder: [layer2ColumnId],
sampling: 1,
incompleteColumns: {},
},
Expand Down

0 comments on commit 1f2694e

Please sign in to comment.