is-promise.js #1

  • //
  • guest/
  • jen_bottom/
  • ember/
  • tutorial/
  • testapp/
  • node_modules/
  • es5-ext/
  • test/
  • object/
  • is-promise.js
  • View
  • Commits
  • Open Download .zip Download (367 B)
"use strict";

module.exports = function (t, a) {
	var promise;
	a(t(), false);
	a(t(null), false);
	a(t("promise"), false);
	a(t({}), false);
	a(t(function () {}), false);
	a(t({ then: {} }), false);
	a(t({ then: function () {} }), true);
	promise = function () {};
	promise.then = {};
	a(t(promise), false);
	promise.then = function () {};
	a(t(promise), true);
};
# Change User Description Committed
#1 23539 jenbottom Adding the basic code for ember test appk, created with 'ember new' command