import {polyfill} from 'es6-promise';
polyfill();

export const data = {
  email: 'foo@bar.baz',
  emptyArray: [],
  error: 'foo',
  errorMsg: 'Set sail for fail!',
  found: 'bar',
  message: 'Wubba lubba dub dub!',
  notFound: 'baz',
  none: ' ',
  obj: {
    foo: 'bar'
  },
  objArray: [
    {foo: 'bar'}
  ]
};

export const loggerMock = {
  error: () => {
  },
  info: () => {
  },
  log: () => {
  },
  warn: () => {
  }
};

import {polyfill} from 'es6-promise';
if (global.Promise === undefined) {
  polyfill();
}

export const data = {
  email: 'foo@bar.baz',
  emptyArray: [],
  error: 'foo',
  errorMsg: 'Set sail for fail!',
  found: 'bar',
  message: 'Wubba lubba dub dub!',
  notFound: 'baz',
  none: ' ',
  obj: {
    foo: 'bar'
  },
  objArray: [
    {foo: 'bar'}
  ]
};

export const loggerMock = {
  error: () => {
  },
  info: () => {
  },
  log: () => {
  },
  warn: () => {
  }
};

Use native Promise in tests if available
Use native Promise in tests if available
