jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/native-promise-only/test_adapter.js
Luke Pulverenti 8a6884abef minify
2017-01-27 18:07:14 -05:00

1 line
358 B
JavaScript

var path=require("path"),Promise=require(path.join(__dirname,"lib","npo.src.js"));module.exports.deferred=function(){var o={};return o.promise=new Promise(function(resolve,reject){o.resolve=resolve,o.reject=reject}),o},module.exports.resolved=function(val){return Promise.resolve(val)},module.exports.rejected=function(reason){return Promise.reject(reason)};