diff options
Diffstat (limited to 'src/scenario/matchers.js')
| -rw-r--r-- | src/scenario/matchers.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/scenario/matchers.js b/src/scenario/matchers.js deleted file mode 100644 index 183dce46..00000000 --- a/src/scenario/matchers.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -/** - * Matchers for implementing specs. Follows the Jasmine spec conventions. - */ - -angular.scenario.matcher('toEqual', function(expected) { - return angular.equals(this.actual, expected); -}); - -angular.scenario.matcher('toBe', function(expected) { - return this.actual === expected; -}); - -angular.scenario.matcher('toBeDefined', function() { - return angular.isDefined(this.actual); -}); - -angular.scenario.matcher('toBeTruthy', function() { - return this.actual; -}); - -angular.scenario.matcher('toBeFalsy', function() { - return !this.actual; -}); - -angular.scenario.matcher('toMatch', function(expected) { - return new RegExp(expected).test(this.actual); -}); - -angular.scenario.matcher('toBeNull', function() { - return this.actual === null; -}); - -angular.scenario.matcher('toContain', function(expected) { - return includes(this.actual, expected); -}); - -angular.scenario.matcher('toBeLessThan', function(expected) { - return this.actual < expected; -}); - -angular.scenario.matcher('toBeGreaterThan', function(expected) { - return this.actual > expected; -}); |
