diff --git a/lib/async_functions.js b/lib/event_functions.js similarity index 90% rename from lib/async_functions.js rename to lib/event_functions.js index 6758b46..4de2456 100644 --- a/lib/async_functions.js +++ b/lib/event_functions.js @@ -1,4 +1,4 @@ -AsyncFunctions = function(features) { +EventFunctions = function(features) { var functionsForExport = {} function filter(selector, callback) { diff --git a/spec/async/filter_spec.js b/spec/event/filter_spec.js similarity index 91% rename from spec/async/filter_spec.js rename to spec/event/filter_spec.js index 75fb864..cbd89f0 100644 --- a/spec/async/filter_spec.js +++ b/spec/event/filter_spec.js @@ -2,7 +2,7 @@ require("./spec_helper.js"); describe("filter", function() { - var f = AsyncFunctions().functions + var f = EventFunctions().functions it("filter out items", function(){ var results = [] diff --git a/spec/async/map_spec.js b/spec/event/map_spec.js similarity index 56% rename from spec/async/map_spec.js rename to spec/event/map_spec.js index 382a388..e41bbd7 100644 --- a/spec/async/map_spec.js +++ b/spec/event/map_spec.js @@ -2,13 +2,8 @@ require("./spec_helper.js"); describe("map", function() { - var f = AsyncFunctions().functions + var f = EventFunctions().functions - //in a way "stream" is now inaccurate. - //stream implies order. async means it may or may not be ordered, - //there's no way for the library to tell - //in fact there's no way for the library to even get in the way...it just getting called back and doing some tranform on the result. - it("simply transforms a value from a callback", function(){ var results = [] var mapper = f.map(function(item){return "x" + item}, function(transformedItem){results.push(transformedItem)}) diff --git a/spec/async/spec_helper.js b/spec/event/spec_helper.js similarity index 85% rename from spec/async/spec_helper.js rename to spec/event/spec_helper.js index 93c4274..cb891dc 100644 --- a/spec/async/spec_helper.js +++ b/spec/event/spec_helper.js @@ -7,4 +7,4 @@ for(var key in jasmine) { global[key] = jasmine[key] } -require("async_functions") \ No newline at end of file +require("event_functions") \ No newline at end of file diff --git a/spec/async/suite.js b/spec/event/suite.js similarity index 100% rename from spec/async/suite.js rename to spec/event/suite.js