Commit dfa0a156 authored by Teddy Zeenny's avatar Teddy Zeenny

Run reduce tests only in node

parent 2158a5a9
......@@ -979,8 +979,12 @@ describe("RSVP extensions", function() {
});
});
// 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;
it("should build the promise pipeline without error", function(){
......@@ -1025,4 +1029,6 @@ describe("using reduce to sum integers using promises", function(){
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