Files
iD/test/spec/ui/modal.js
John Firebaugh 7e68e8e114 Add iD.Context
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00

10 lines
278 B
JavaScript

describe("iD.ui.modal", function () {
it('can be instantiated', function () {
var modal = iD.ui.modal()
.select('.content')
.text('foo');
expect(modal).to.be.ok;
happen.keydown(document, {keyCode: 27}); // dismiss
});
});