const prom1 = new Promise<number>((resolve, reject) => {
	resolve(12);
});

const prom2 = new Promise<string>((resolve, reject) => {
	reject('an error');
}).then((val) => {
  console.log(val);
  return val;
}).catch((err) => {
	console.error(err);
});

Promise.all([prom1, prom2])
.then(result => {
	console.log(result);
}, (exception) => console.error(exception))
.catch((ex) => console.error(ex));

import Promise from "promise-polyfill";

const prom1 = new Promise<number>((resolve, reject) => {
	resolve(12);
});

const prom2 = new Promise<string>((resolve, reject) => {
	reject('an error');
}).then((val) => {
  console.log(val);
  return val;
}).catch((err) => {
	console.error(err);
});

Promise.all([prom1, prom2])
.then(result => {
	console.log(result);
}, (exception) => console.error(exception))
.catch((ex) => console.error(ex));

Add missing import to test file.
Add missing import to test file.

The tests weren't really testing promise-polyfill at all, they were
testing TypeScript's built-in Promise type.
