From 0a2ca7857c9f4a1b42842103874c238c014ba396 Mon Sep 17 00:00:00 2001 From: Peter Kong Date: Thu, 30 Nov 2023 15:47:24 -0500 Subject: [PATCH] fix failing node specs, part 1 --- .../libs/getIconForActivityClassification.test.tsx | 2 +- .../bundles/Shared/test/libs/isValidRegex.test.ts | 2 +- .../__snapshots__/welcome_modal.test.jsx.snap | 2 +- .../diagnostics/__tests__/results.test.jsx | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/services/QuillLMS/client/app/bundles/Shared/test/libs/getIconForActivityClassification.test.tsx b/services/QuillLMS/client/app/bundles/Shared/test/libs/getIconForActivityClassification.test.tsx index 61e6e57e407..051763f15ca 100644 --- a/services/QuillLMS/client/app/bundles/Shared/test/libs/getIconForActivityClassification.test.tsx +++ b/services/QuillLMS/client/app/bundles/Shared/test/libs/getIconForActivityClassification.test.tsx @@ -1,4 +1,4 @@ -import * as expect from 'expect'; +import expect from 'expect'; import * as React from 'react'; import { connectToolIcon, diagnosticToolIcon, evidenceToolIcon, getIconForActivityClassification, grammarToolIcon, lessonsToolIcon, proofreaderToolIcon } from '../../../Shared'; diff --git a/services/QuillLMS/client/app/bundles/Shared/test/libs/isValidRegex.test.ts b/services/QuillLMS/client/app/bundles/Shared/test/libs/isValidRegex.test.ts index 024b8901b20..1cd12c2093c 100644 --- a/services/QuillLMS/client/app/bundles/Shared/test/libs/isValidRegex.test.ts +++ b/services/QuillLMS/client/app/bundles/Shared/test/libs/isValidRegex.test.ts @@ -1,4 +1,4 @@ -import * as expect from 'expect'; +import expect from 'expect'; import { isValidRegex } from '../../../Shared'; describe('#isValidRegex', () => { diff --git a/services/QuillLMS/client/app/bundles/Teacher/components/dashboard/__tests__/__snapshots__/welcome_modal.test.jsx.snap b/services/QuillLMS/client/app/bundles/Teacher/components/dashboard/__tests__/__snapshots__/welcome_modal.test.jsx.snap index 3c081defdae..3a8f7eeaff1 100644 --- a/services/QuillLMS/client/app/bundles/Teacher/components/dashboard/__tests__/__snapshots__/welcome_modal.test.jsx.snap +++ b/services/QuillLMS/client/app/bundles/Teacher/components/dashboard/__tests__/__snapshots__/welcome_modal.test.jsx.snap @@ -7,7 +7,7 @@ exports[`WelcomeModal component should render WelcomeModal 1`] = `
- ({ - default: { - parse: jest.fn(() => ({})) - } -}) -) +// jest.mock('qs', () => ({ +// default: { +// parse: jest.fn(() => ({})) +// } +// }) +// ) describe('Results component', () => { it('should render when there are results', () => {