Tone.js/test/helper/Basic.js
2018-05-18 12:07:20 -04:00

22 lines
446 B
JavaScript

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