From 2430f52bb97fa9d682e5f028c977c5bf94c5ec38 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 23 Mar 2012 14:03:24 -0700 Subject: chore(module): move files around in preparation for more modules --- src/scenario/matchers.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/scenario/matchers.js (limited to 'src/scenario/matchers.js') 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; -}); -- cgit v1.2.3