mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 20:13:07 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
31 lines
679 B
JavaScript
31 lines
679 B
JavaScript
import Test from "helper/Test";
|
|
import Tone from "Tone/core/Tone";
|
|
|
|
// var testAudioContext = new Tone.Context();
|
|
|
|
export default 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();
|
|
});
|
|
|
|
/*it("can specify the AudioContext", function(){
|
|
var instance = new Constr(testAudioContext, args);
|
|
expect(instance.context).to.equal(testAudioContext);
|
|
instance.dispose();
|
|
});*/
|
|
|
|
});
|
|
|
|
}
|
|
|