import fetch from '../default/fetch.js';
import checkMinifiedJs from './checkMinifiedJs.js';
import checkHttpStatus from '../default/checkHttpStatus.js';

export default function(urls) {
  return new Promise(function(resolve, reject) {
    let chain = Promise.resolve();

    urls.forEach((url) => {
      chain = chain.then(() => {
        return Promise.resolve(url)
          .then(fetch)
          .then(checkHttpStatus)
          .then(checkMinifiedJs)
          .catch(() => {
            outcome.warning('resources', url, 'Not found!');
          });
      });
    });

    chain.then(() => { resolve(urls); });
  });
};

@@ -146,16 +146,50 @@
 tus.js';
+%0Aimport outcome from '../outcome';
 %0A%0Aexport

Fix missing outcome import