Tests: added tests for NJS loadable modules.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
"str" : function () {return typeof globalThis.njs.version}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import cr from 'crypto';
|
||||
|
||||
export default {
|
||||
"num" : function () {return typeof cr.createHash('md5').digest().length}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
"route": function() {blah 'next'}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
"route": function() {return 'next'}
|
||||
}
|
||||
Reference in New Issue
Block a user