| // test | |
| it.only('calls $mdDialog.show', () => { | |
| return controller.delete(null, { uuid: 'aUuid'}) | |
| .then(() => { | |
| $httpBackend.flush(); | |
| }) | |
| .then(() => { | |
| expect($mdDialog.show).to.have.been.called; | |
| }); | |
| }); | |
| // output | |
| delete method | |
| ✖ calls $mdDialog.show | |
| PhantomJS 1.9.8 (Mac OS X 0.0.0) | |
| timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment