diff options
| author | Igor Minar | 2014-03-17 15:50:24 -0700 | 
|---|---|---|
| committer | Igor Minar | 2014-03-18 12:01:35 -0700 | 
| commit | 922cb7e42f1ff6c3f39342b96be472048ad9cb25 (patch) | |
| tree | 770f1e4d4d984b76d20cdb69ef73ab2127c12fbd /test/ng/rootScopeSpec.js | |
| parent | 103cb513d93109e3af37268ea176e89d4883431b (diff) | |
| download | angular.js-922cb7e42f1ff6c3f39342b96be472048ad9cb25.tar.bz2 | |
chore(log): add `log.empty()`  method to the testing logger
`log.empty()` is the same as `log.reset()`, except thati `empty()`  also returns the current array with messages
instead of:
```
// do work
expect(log).toEqual(['bar']);
log.reset();
```
do:
```
// do work
expect(log.empty()).toEqual(['bar']);
```
Diffstat (limited to 'test/ng/rootScopeSpec.js')
0 files changed, 0 insertions, 0 deletions
