-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
This code doesn't expose the marked as exposed function
'use strict'
// Using false will remove the entry from the object and will ease the roles retrieval
const Overrides = {
zob : true,
}
/**
* Filter rights according to their Boolean value
* @param {Object} rights An object with rights to filter on
* @return {Set} The list of rights available to this user
*/
// @test-export
function format(rights) {
console.log('whatever')
}
module.exports = {}But this one does
'use strict'
// Using false will remove the entry from the object and will ease the roles retrieval
const Overrides = {
zob : true,
}
/**
* Filter rights according to their Boolean value
* @param {Object} rights An object with rights to filter on
* @return {Set} The list of rights available to this user
*/
// @test-export
function format(rights) {
console.log('whatever')
}
module.exports = {}The diff between the two is the following:
diff --git a/toto.js b/Volumes/Work/euronews/api/src/utils/rights.js
index a7907b3..9901739 100644
--- a/toto.js
+++ b/Volumes/Work/euronews/api/src/utils/rights.js
@@ -2,7 +2,7 @@
// Using false will remove the entry from the object and will ease the roles retrieval
const Overrides = {
-// zob : true,
+ zob : true,
}
/**
@@ -16,4 +16,3 @@ function format(rights) {
}
module.exports = {}I tried looking at the src but I must admit I'm no good at reCAST 😆
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels