lion/packages/overlays/test/ModalDialogController.test.js
Thomas Allmer ec8da8f12c feat: release inital public lion version
Co-authored-by: Mikhail Bashkirov <mikhail.bashkirov@ing.com>
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
Co-authored-by: Joren Broekema <joren.broekema@ing.com>
Co-authored-by: Gerjan van Geest <gerjan.van.geest@ing.com>
Co-authored-by: Erik Kroes <erik.kroes@ing.com>
Co-authored-by: Lars den Bakker <lars.den.bakker@ing.com>
2019-04-26 10:37:57 +02:00

21 lines
762 B
JavaScript

/* eslint-env mocha */
import { expect } from '@open-wc/testing';
import { GlobalOverlayController } from '../src/GlobalOverlayController.js';
import { ModalDialogController } from '../src/ModalDialogController.js';
describe('ModalDialogController', () => {
it('extends GlobalOverlayController', () => {
expect(new ModalDialogController()).to.be.instanceof(GlobalOverlayController);
});
it('has correct defaults', () => {
const controller = new ModalDialogController();
expect(controller.hasBackdrop).to.equal(true);
expect(controller.isBlocking).to.equal(false);
expect(controller.preventsScroll).to.equal(true);
expect(controller.trapsKeyboardFocus).to.equal(true);
expect(controller.hidesOnEsc).to.equal(true);
});
});