From d047c787b716e1780978bc3a5e6fa57a11c3a7f3 Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Thu, 23 Jan 2025 22:43:50 -0500 Subject: [PATCH] fix broken import --- client/src/__tests__/Types/QuestionType.test.tsx | 1 + client/src/__tests__/components/GiftTemplate/TextType.test.ts | 2 +- .../Questions/NumericalQuestion/NumericalQuestion.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/__tests__/Types/QuestionType.test.tsx b/client/src/__tests__/Types/QuestionType.test.tsx index d02d52b..b4fa319 100644 --- a/client/src/__tests__/Types/QuestionType.test.tsx +++ b/client/src/__tests__/Types/QuestionType.test.tsx @@ -1,4 +1,5 @@ //QuestionType.test.tsx +// Superfluous test now that gift-pegjs has TypeScript types (and its own tests) import { Question } from 'gift-pegjs'; const sampleStem = 'Sample question stem'; diff --git a/client/src/__tests__/components/GiftTemplate/TextType.test.ts b/client/src/__tests__/components/GiftTemplate/TextType.test.ts index db5ab70..7a9993f 100644 --- a/client/src/__tests__/components/GiftTemplate/TextType.test.ts +++ b/client/src/__tests__/components/GiftTemplate/TextType.test.ts @@ -1,6 +1,6 @@ // TextType.test.ts -import textType from "src/components/GiftTemplate/templates/TextType"; +import { textType } from "src/components/GiftTemplate/templates/TextType"; import { TextFormat } from "gift-pegjs"; describe('TextType', () => { diff --git a/client/src/components/Questions/NumericalQuestion/NumericalQuestion.tsx b/client/src/components/Questions/NumericalQuestion/NumericalQuestion.tsx index d8dfc77..488fb2a 100644 --- a/client/src/components/Questions/NumericalQuestion/NumericalQuestion.tsx +++ b/client/src/components/Questions/NumericalQuestion/NumericalQuestion.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import '../questionStyle.css'; import { Button, TextField } from '@mui/material'; -import textType from '../../GiftTemplate/templates/TextType'; +import { textType } from '../../GiftTemplate/templates/TextType'; import { TextFormat, NumericalAnswer, isHighLowNumericalAnswer, isMultipleNumericalAnswer, isRangeNumericalAnswer, isSimpleNumericalAnswer, SimpleNumericalAnswer, RangeNumericalAnswer, HighLowNumericalAnswer } from 'gift-pegjs'; import DOMPurify from 'dompurify';