Date: Wed, 5 May 2021 10:29:26 -0800
Subject: [PATCH 2/6] chore: add tests for compression
---
__mocks__/@grafana/ui.tsx | 14 ++++++++++----
src/components/CheckEditor/CheckEditor.test.tsx | 8 ++++++++
.../CheckEditor/checkFormTransformations.ts | 5 +++--
src/components/CheckList.test.tsx | 2 +-
src/components/constants.ts | 10 +++++-----
src/components/http/HttpSettings.tsx | 12 +++++++++---
src/types.ts | 8 ++++----
src/validation.test.ts | 12 +++++++++++-
8 files changed, 51 insertions(+), 20 deletions(-)
diff --git a/__mocks__/@grafana/ui.tsx b/__mocks__/@grafana/ui.tsx
index 3c57ca9bc..43613941f 100644
--- a/__mocks__/@grafana/ui.tsx
+++ b/__mocks__/@grafana/ui.tsx
@@ -1,7 +1,7 @@
import * as ui from '@grafana/ui';
import React from 'react';
-const Select = ({ options, value, onChange, multiple = false, prefix, ...rest }: any) => {
+const Select = ({ options, value, onChange, multiple = false, prefix, id, ...rest }: any) => {
function handleChange(event) {
const option = options.find((option) => {
return String(option.value) === event.currentTarget.value;
@@ -16,9 +16,15 @@ const Select = ({ options, value, onChange, multiple = false, prefix, ...rest }:
return (
{prefix}
-