spec: do not leave dialogs in the dom
Change-Id: I6ed33e19803420cb6adb00116cacbe7b92eadc76 Reviewed-on: https://gerrit.instructure.com/208099 Tested-by: Jenkins Reviewed-by: Gary Mei <gmei@instructure.com> QA-Review: Jeremy Neander <jneander@instructure.com> Product-Review: Jeremy Neander <jneander@instructure.com>
This commit is contained in:
parent
aaff474776
commit
8a1ac1e3ad
|
@ -54,8 +54,8 @@ QUnit.module('AssignmentMuterDialogManager', suiteHooks => {
|
||||||
|
|
||||||
QUnit.module('#showDialog()', hooks => {
|
QUnit.module('#showDialog()', hooks => {
|
||||||
hooks.beforeEach(() => {
|
hooks.beforeEach(() => {
|
||||||
sinon.spy(AssignmentMuter.prototype, 'confirmUnmute')
|
sinon.stub(AssignmentMuter.prototype, 'confirmUnmute')
|
||||||
sinon.spy(AssignmentMuter.prototype, 'showDialog')
|
sinon.stub(AssignmentMuter.prototype, 'showDialog')
|
||||||
})
|
})
|
||||||
|
|
||||||
hooks.afterEach(() => {
|
hooks.afterEach(() => {
|
||||||
|
|
Loading…
Reference in New Issue