forked from taylorhakes/promise-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added A+ Test suite to dev dependencies
- Loading branch information
Taylor Hakes
committed
Mar 5, 2014
1 parent
3d5cfd0
commit 37e52a2
Showing
4 changed files
with
111 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
.idea | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "promise-light", | ||
"version": "0.0.0", | ||
"description": "Light weight promise A+ implementation", | ||
"main": "Promise.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/promises-aplus-tests tests/adapter.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://[email protected]/taylorhakes/promise-light.git" | ||
}, | ||
"author": "Taylor Hakes", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/taylorhakes/promise-light/issues" | ||
}, | ||
"homepage": "https://github.com/taylorhakes/promise-light", | ||
"devDependencies": { | ||
"promises-aplus-tests": "^2.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Created with JetBrains PhpStorm. | ||
* User: taylorhakes | ||
* Date: 3/4/14 | ||
* Time: 11:15 PM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
var Promise = require('../Promise'); | ||
module.exports = { | ||
resolved: Promise.resolve, | ||
rejected: Promise.rejected, | ||
deferred: function() { | ||
var obj = {}; | ||
var prom = new Promise(function(resolve, reject) { | ||
obj.resolve = resolve; | ||
obj.reject = reject; | ||
}); | ||
obj.promise = prom; | ||
return obj; | ||
} | ||
} |