From 6e6adb63af6eb94d20ea1a49e757d8c909a5ea3e Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:35:12 +0530 Subject: [PATCH] chore(test): convert from cjs to esm --- test/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/index.js b/test/index.js index 2de6d85..5e7848c 100644 --- a/test/index.js +++ b/test/index.js @@ -1,8 +1,8 @@ -const { strictEqual } = require('node:assert'); -const { existsSync } = require('node:fs'); -const test = require('node:test'); +import { strictEqual } from 'node:assert'; +import { existsSync } from 'node:fs'; +import test from 'node:test'; -const findpath = require('../lib/findpath.js').findpath; +import { findpath } from '../lib/findpath.js'; test('nwjs has downloaded and been extracted', function() { strictEqual(existsSync(findpath()), true);