From e88e16d11e8d197f27d292540a015cf05af6277f Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Wed, 10 May 2023 13:02:52 +0100 Subject: Tests: added tests for NJS loadable modules. --- test/njs/import_from/script.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/njs/import_from/script.js (limited to 'test/njs/import_from') diff --git a/test/njs/import_from/script.js b/test/njs/import_from/script.js new file mode 100644 index 00000000..99d1b80e --- /dev/null +++ b/test/njs/import_from/script.js @@ -0,0 +1,5 @@ +import cr from 'crypto'; + +export default { + "num" : function () {return typeof cr.createHash('md5').digest().length} +} -- cgit