From fc7b5e22e4be65a6e8194d4ee76aec1bbce24e36 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 13 Oct 2025 06:05:28 -0700 Subject: [PATCH] Refactor: Convert test definition to ES Module --- tests/3_lis/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/3_lis/test.js b/tests/3_lis/test.js index 3745fa7..38b19d3 100644 --- a/tests/3_lis/test.js +++ b/tests/3_lis/test.js @@ -1,4 +1,4 @@ -module.exports = { +export default { prompt: ` // Write an async JavaScript function 'findLISLength' that finds the length of the Longest Increasing Subsequence (LIS) in an array of numbers. // - The function must accept an array of numbers. @@ -7,7 +7,7 @@ module.exports = { // - The function should return a single number: the length of the LIS. `, harness: ` -const assert = require('assert'); +import assert from 'assert'; async function runTest() { const nums = [10, 9, 2, 5, 3, 7, 101, 18, 4, 6]; try {