examples/small-study/src/studySetup.js
async function getStudySetup() {
  // shallow copy
  const studySetup = Object.assign({}, baseStudySetup);

  studySetup.allowEnroll = await cachingFirstRunShouldAllowEnroll(studySetup);

  const testingOverrides = await browser.study.getTestingOverrides();
  studySetup.testing = {
    variationName: testingOverrides.variationName,
    firstRunTimestamp: testingOverrides.firstRunTimestamp,
    expired: testingOverrides.expired,
  };

  return studySetup;
}
async function getStudySetup() {
  // shallow copy
  const studySetup = Object.assign({}, baseStudySetup);

  studySetup.allowEnroll = await cachingFirstRunShouldAllowEnroll(studySetup);

  const testingOverrides = await browser.study.getTestingOverrides();
  studySetup.testing = {
    variationName: testingOverrides.variationName,
    firstRunTimestamp: testingOverrides.firstRunTimestamp,
    expired: testingOverrides.expired,
  };

  return studySetup;
}
async function getStudySetup ( ) { // shallow copy const studySetup = Object . assign ( { } , baseStudySetup ) ; studySetup . allowEnroll = await cachingFirstRunShouldAllowEnroll ( studySetup ) ; const testingOverrides = await browser . study . getTestingOverrides ( ) ; studySetup . testing = { variationName : testingOverrides . variationName , firstRunTimestamp : testingOverrides . firstRunTimestamp , expired : testingOverrides . expired , } ; return studySetup ; }
Augment declarative studySetup with any necessary async values

@return {object} studySetup A complete study setup object
Augment declarative studySetup with any necessary async values