Commit dc6ce37a authored by Stefan Penner's avatar Stefan Penner

Merge pull request #3 from teddyzeenny/fix_callback_assimilation

Run reduce tests only in node
parents 2158a5a9 dfa0a156
...@@ -979,8 +979,12 @@ describe("RSVP extensions", function() { ...@@ -979,8 +979,12 @@ describe("RSVP extensions", function() {
}); });
}); });
// thanks to @wizardwerdna for the test case -> https://github.com/tildeio/rsvp.js/issues/66 // thanks to @wizardwerdna for the test case -> https://github.com/tildeio/rsvp.js/issues/66
describe("using reduce to sum integers using promises", function(){ // Only run these tests in node (phantomjs cannot handle them)
if (typeof module !== 'undefined' && module.exports) {
describe("using reduce to sum integers using promises", function(){
var resolve = RSVP.resolve; var resolve = RSVP.resolve;
it("should build the promise pipeline without error", function(){ it("should build the promise pipeline without error", function(){
...@@ -1025,4 +1029,6 @@ describe("using reduce to sum integers using promises", function(){ ...@@ -1025,4 +1029,6 @@ describe("using reduce to sum integers using promises", function(){
done(); done();
}); });
}); });
}); });
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment