aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Future.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/Future.js')
-rw-r--r--src/scenario/Future.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/scenario/Future.js b/src/scenario/Future.js
index 6c90df9d..d70e8e6e 100644
--- a/src/scenario/Future.js
+++ b/src/scenario/Future.js
@@ -11,25 +11,3 @@ Future.prototype = {
this.value = value;
}
};
-
-function Matcher(future, logger) {
- var self = 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', function(a,b){ return a == b; });