mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
20 lines
440 B
JavaScript
20 lines
440 B
JavaScript
describe("iD.ui.modal", function () {
|
|
var elem;
|
|
|
|
beforeEach(function() {
|
|
elem = d3.select('body').append('div');
|
|
});
|
|
|
|
afterEach(function() {
|
|
elem.remove();
|
|
});
|
|
|
|
it('can be instantiated', function() {
|
|
var modal = iD.ui.modal(elem)
|
|
.select('.content')
|
|
.text('foo');
|
|
expect(modal).to.be.ok;
|
|
happen.keydown(document, {keyCode: 27}); // dismiss
|
|
});
|
|
});
|