Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #70 from mcollina/can_build_using_function
Browse files Browse the repository at this point in the history
Check can use a function as type in ascoltatori.build
  • Loading branch information
mcollina committed Jul 6, 2013
2 parents 9734f4f + b8534c8 commit 5cbee6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/can_be_used_by_ascoltatori.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ module.exports = function(Class, type, makeSettings) {
toClose.push(a);
expect(a).to.be.instanceOf(Class);
});

it("should build a new ascoltatore using a function as type", function() {
var settings = makeSettings();
settings.type = Class;
var a = ascoltatori.build(settings);
toClose.push(a);
expect(a).to.be.instanceOf(Class);
});

it("should wrap it with a prefix", function(done) {
var settings = makeSettings();
Expand Down

0 comments on commit 5cbee6a

Please sign in to comment.