Tone.js/test/helper/Basic.js
2015-08-21 17:03:14 -04:00

22 lines
No EOL
428 B
JavaScript

define(["Test", "Tone/core/Tone"], function (Test, Tone) {
return function(Constr){
context("Basic", function(){
it ("can be created and disposed", function(){
var instance = new Constr();
instance.dispose();
Test.wasDisposed(instance);
});
it ("extends Tone", function(){
var instance = new Constr();
expect(instance).to.be.an.instanceof(Tone);
instance.dispose();
});
});
};
});