🇮🇳India @Abhishek joshi27

Account created on 28 November 2023, about 1 year ago
#

Recent comments

🇮🇳India Abhishek joshi27

 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.

🇮🇳India Abhishek joshi27

 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);
  },
};
 

🇮🇳India Abhishek joshi27

I think the changes I have made will help to describe the paragraph exclusively.

Production build 0.71.5 2024