I have edited the page Needs review
I have changes in access in contextual links for Configuring permissions for the Layout Builder involves ensuring that users have the necessary access to utilize its functionalities effectively and user friendly.
Abhishek joshi27 → created an issue.
Abhishek joshi27 → created an issue.
I think, I can refine the code using modern JavaScript practices and provide an updated version and Using arrow function to simplify setTimeout. for Unit test example.. this is modified code:
modified code for unit testing
const assert = require('assert');
const testScript = require('../../Scripts/unitTestScript');
const dataProvider = [
{ input: 'value_1', expected: 'value_1Test' },
{ input: 'value_2', expected: 'value_2Test' },
{ input: 'value_3', expected: 'value_3Test' },
];
module.exports = {
'@tags': ['unit_test'],
'@unitTest': true,
'example unit test': function (done) {
dataProvider.forEach(({ input, expected }) => {
assert.strictEqual(testScript.testMethod(input), expected);
});
// Using arrow function to simplify setTimeout
setTimeout(() => {
done();
}, 10);
},
};
Abhishek joshi27 → created an issue.
I think the changes I have made will help to describe the paragraph exclusively.