I am wondering how I syntactically change this self-executing exported function:

```
export default (() => ({
  get items() {
    if (process.env.NODE_ENV === 'test') {
      return { message: 'this is testing' };
    } else {
      return { message: 'this is not testing' };
    }
  },
}))();

```

Into something that uses ES6 arrow functions and the exported statement at the end (my best, incorrect guess):

```
const items = (() => {
  if (process.env.NODE_ENV === 'test') {
    return { API_AUTHORITY: 'this is testing' };
  } else {
    return { API_AUTHORITY: 'this is not testing' };
  }
})();

export default items;

```

Thanks!