Tone.js/test/instrument/Monophonic.js
tambien ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00

27 lines
547 B
JavaScript

import Monophonic from "Tone/instrument/Monophonic";
import Basic from "helper/Basic";
describe("Monophonic", function(){
Basic(Monophonic);
context("API", function(){
it("can be constructed with an options object", function(){
var instr = new Monophonic({
"portamento" : 0.2
});
expect(instr.portamento).to.equal(0.2);
instr.dispose();
});
it("set the portamento", function(){
var instr = new Monophonic();
instr.portamento = 0.4;
expect(instr.portamento).to.equal(0.4);
instr.dispose();
});
});
});