(function () {
    "use strict";
    var promise = require("./../lib/promise.js");


    module.exports = {
        "deferred": function () {
            return promise.defer();
        },
        "resolved": function ( value ) {
            return promise.defer().resolve(value);
        },
        "rejected": function ( reason ) {
            return promise.defer().reject(reason);
        }
    };
} ());

(function () {
    "use strict";

    var p = require.resolve( "./../lib/promise.js" );
    if ( p ) delete require.cache[p];

    var promise = require( "./../lib/promise.js" );


    module.exports = {
        "deferred": function () {
            return promise.defer();
        },
        "resolved": function ( value ) {
            return promise.defer().resolve( value );
        },
        "rejected": function ( reason ) {
            return promise.defer().reject( reason );
        }
    };
}());

add flush cache before loading