diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/helpers/testabilityPatch.js | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/test/helpers/testabilityPatch.js b/test/helpers/testabilityPatch.js index f61be4ee..34b6b78a 100644 --- a/test/helpers/testabilityPatch.js +++ b/test/helpers/testabilityPatch.js @@ -269,21 +269,27 @@ function provideLog($provide) {        log.toString = function() {          return messages.join('; '); -      } +      };        log.toArray = function() {          return messages; -      } +      };        log.reset = function() {          messages = []; +      }; + +      log.empty = function() { +        var currentMessages = messages; +        messages = []; +        return currentMessages;        }        log.fn = function(msg) {          return function() {            log(msg); -        } -      } +        }; +      };        log.$$log = true; | 
