aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Matcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/Matcher.js')
-rw-r--r--src/scenario/Matcher.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/scenario/Matcher.js b/src/scenario/Matcher.js
deleted file mode 100644
index a9c86571..00000000
--- a/src/scenario/Matcher.js
+++ /dev/null
@@ -1,21 +0,0 @@
-function Matcher(scope, future, logger) {
- var self = scope.$scenario = this;
- this.logger = logger;
- this.future = future;
-}
-
-Matcher.addMatcher = function(name, matcher) {
- Matcher.prototype[name] = function(expected) {
- var future = this.future;
- $scenario.addFuture(
- 'expect ' + future.name + ' ' + name + ' ' + expected,
- function(done){
- if (!matcher(future.value, expected))
- throw "Expected " + expected + ' but was ' + future.value;
- done();
- }
- );
- };
-};
-
-Matcher.addMatcher('toEqual', angular.equals);