From 7efae39296cad99aee7bf663f66bf46d729c5e5d Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 13 Oct 2025 06:05:31 -0700 Subject: [PATCH] Refactor: Convert test definition to ES Module --- tests/4_determinant/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/4_determinant/test.js b/tests/4_determinant/test.js index dc1db11..4c7df20 100644 --- a/tests/4_determinant/test.js +++ b/tests/4_determinant/test.js @@ -1,4 +1,4 @@ -module.exports = { +export default { prompt: ` // Write an async JavaScript function 'calculateDeterminant' that calculates the determinant of a square matrix. // - The function must accept an n x n matrix, represented as an array of arrays. @@ -7,7 +7,7 @@ module.exports = { // - The function should return the determinant value. `, harness: ` -const assert = require('assert'); +import assert from 'assert'; async function runTest() { const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; try {