text: "use strict";
  var assert = require("power-assert");
  describe("promise.then ", function () {
      it("should return new promise object", function () {
          var aPromise = new Promise(function (resolve) {
              resolve(100);
          });
          var thenPromise = aPromise.then(function (value) {
              console.log(value);
          });
          var catchPromise = thenPromise.catch(function (error) {
              console.log(error);
          });
          assert(aPromise !== thenPromise);
          assert(thenPromise !== catchPromise);
      });
      it("diferrence then then", function (done) {
          var aPromise = new Promise(function (resolve) {
              resolve(100);
          });
          aPromise.then(function (value) {
              return value * 2;
          });
          aPromise.then(function (value) {
              return value * 2;
          });
          aPromise.then(function (value) {
              assert(value === 100);
          }).then(done, done);
  
          var bPromise = new Promise(function (resolve) {
              resolve(100);
          });
          bPromise.then(function (value) {
              return value * 2;
          }).then(function (value) {
              return value * 2;
          }).then(function (value) {
              assert(value === 100 * 4);
          });
      });
  });