| 1 |
import { expect } from 'chai'; |
| 2 |
import { DummyManager } from './dummy-manager'; |
| 3 |
import bqplot = require('..'); |
| 4 |
import { create_model_bqplot } from './widget-utils'; |
| 5 |
|
| 6 |
describe('scales >', () => { |
| 7 |
beforeEach(async function () { |
| 8 |
this.manager = new DummyManager({ bqplot: bqplot }); |
| 9 |
}); |
| 10 |
it('linear', async function () { |
| 11 |
const scale = await create_model_bqplot( |
| 12 |
this.manager, |
| 13 |
'LinearScale', |
| 14 |
'scale1', |
| 15 |
{ min: 0, max: 1 } |
| 16 |
); |
| 17 |
expect(scale).to.be.not.undefined; |
| 18 |
}); |
| 19 |
}); |