I think you should be passing a function to `expect()` here:
```
expect($rootScope.$digest).toThrow();
```

And if we wanted to be really particular this could be:
```
expect($rootScope.$digest).toThrow('The Mask widget is not correctly set up');
```