@@ -2,7 +2,7 @@ import React, { useState } from "react";
22import styles from "./Output.module.css" ;
33import classnames from "classnames" ;
44import { OutputResult } from "@/lib/types" ;
5- import FailedTestCasesWindow from "../TestCaseWindow/TestCaseWindow" ;
5+ import TestCasesWindow from "../TestCaseWindow/TestCaseWindow" ;
66import MyBtn from "../MyBtn" ;
77import { InvalidSchemaError } from "@hyperjump/json-schema/draft-2020-12" ;
88import { schemaUrl } from "@/lib/validators" ;
@@ -101,12 +101,18 @@ function Output({
101101 ) ;
102102 } else if ( outputResult . validityStatus == "valid" ) {
103103 outputBodyContent = (
104- < div className = { styles . valid } >
105- < b className = { styles . validMessage } > Valid Schema!</ b >
106- < span className = { styles . validSmallMessage } >
107- Let's move on to the next step
108- </ span >
109- </ div >
104+ < >
105+ < div className = { styles . valid } >
106+ < b className = { styles . validMessage } > Valid Schema!</ b >
107+ < span className = { styles . validSmallMessage } >
108+ Let's move on to the next step
109+ </ span >
110+ </ div >
111+ < TestCasesWindow
112+ testCaseResult = { outputResult . testCaseResults ! }
113+ totalTestCases = { outputResult . totalTestCases ! }
114+ />
115+ </ >
110116 ) ;
111117 } else if ( outputResult . validityStatus == "syntaxError" ) {
112118 outputBodyContent = (
@@ -128,7 +134,7 @@ function Output({
128134 ) ;
129135 } else {
130136 outputBodyContent = (
131- < FailedTestCasesWindow
137+ < TestCasesWindow
132138 testCaseResult = { outputResult . testCaseResults ! }
133139 totalTestCases = { outputResult . totalTestCases ! }
134140 />
0 commit comments