From 31f6e0bf03dfb2ffe71c50483f08acf100d277df Mon Sep 17 00:00:00 2001 From: Marc McIntosh Date: Tue, 20 Feb 2024 15:21:32 +0100 Subject: [PATCH] test(combobox utils): add test for the detect command and replace value functions --- src/components/ComboBox/utils.test.tsx | 90 ++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 src/components/ComboBox/utils.test.tsx diff --git a/src/components/ComboBox/utils.test.tsx b/src/components/ComboBox/utils.test.tsx new file mode 100644 index 00000000..3ce00283 --- /dev/null +++ b/src/components/ComboBox/utils.test.tsx @@ -0,0 +1,90 @@ +import React, { HTMLProps } from "react"; +import { describe, test, expect } from "vitest"; +import { render } from "../../utils/test-utils"; +import { detectCommand, replaceValue } from "./utils"; + +const TextArea: React.FC> = (props) => { + const [value, setValue] = React.useState(""); + return ( +