Skip to content

Commit fd96dff

Browse files
author
David Buzinski
committed
minor style changes
1 parent bf08dab commit fd96dff

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

src/matlab.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { promises as fs } from "fs";
44
import * as os from "os";
55
import * as path from "path";
6-
76
import { v4 as uuid } from "uuid";
87
import * as script from "./script.js";
98

src/testResultsSummary.unit.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import {jest, describe, it, expect, beforeAll} from "@jest/globals";
44
import * as path from "path";
5-
import * as os from "node:os";
6-
import * as nodeFs from "node:fs";
5+
import * as os from "os";
6+
import * as nodeFs from "fs";
77
import { JSDOM } from "jsdom";
8-
import type * as TestResultsSummaryTypes from "./testResultsSummary.js";
8+
import type { TestResultsData, MatlabTestFile, TestStatistics } from "./testResultsSummary.js";
99

1010
// Mock @actions/core
1111
jest.unstable_mockModule("@actions/core", () => ({
@@ -33,9 +33,9 @@ const {MatlabTestStatus} = testResultsSummary;
3333

3434
describe("Artifact Processing Tests", () => {
3535
// Shared test data
36-
let testResultsData: TestResultsSummaryTypes.TestResultsData | null;
37-
let testResults: TestResultsSummaryTypes.MatlabTestFile[][];
38-
let stats: TestResultsSummaryTypes.TestStatistics;
36+
let testResultsData: TestResultsData | null;
37+
let testResults: MatlabTestFile[][];
38+
let stats: TestStatistics;
3939

4040
beforeAll(() => {
4141
const runnerTemp = path.join(import.meta.dirname, "..");
@@ -192,7 +192,7 @@ describe("HTML Structure Tests", () => {
192192
});
193193

194194
it("should generate valid HTML table structure for header", () => {
195-
const mockStats: TestResultsSummaryTypes.TestStatistics = {
195+
const mockStats: TestStatistics = {
196196
Total: 10,
197197
Passed: 4,
198198
Failed: 3,
@@ -236,7 +236,7 @@ describe("HTML Structure Tests", () => {
236236
});
237237

238238
it("should generate valid HTML for detailed results with proper details tags for both passed and failed tests", () => {
239-
const mockTestResults: TestResultsSummaryTypes.MatlabTestFile[][] = [
239+
const mockTestResults: MatlabTestFile[][] = [
240240
[
241241
{
242242
Name: "TestExamples1",
@@ -341,16 +341,16 @@ describe("Error Handling Tests", () => {
341341
throw new Error("Mock error in addHeading");
342342
});
343343

344-
const mockStats: TestResultsSummaryTypes.TestStatistics = {
344+
const mockStats: TestStatistics = {
345345
Total: 1,
346346
Passed: 1,
347347
Failed: 0,
348348
Incomplete: 0,
349349
NotRun: 0,
350350
Duration: 0.5,
351351
};
352-
const mockTestResults: TestResultsSummaryTypes.MatlabTestFile[][] = [];
353-
const mockTestResultsData: TestResultsSummaryTypes.TestResultsData = {
352+
const mockTestResults: MatlabTestFile[][] = [];
353+
const mockTestResultsData: TestResultsData = {
354354
TestResults: mockTestResults,
355355
Stats: mockStats,
356356
};

0 commit comments

Comments
 (0)