konacha-chai-matchers 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
result = val();
|
40
|
-
isPromise =
|
40
|
+
isPromise = typeof result.then === 'function';
|
41
41
|
if (((typeof DS !== "undefined" && DS !== null ? DS.Model : void 0) != null) && result instanceof DS.Model) {
|
42
42
|
isPromise = false;
|
43
43
|
}
|
@@ -63,6 +63,7 @@
|
|
63
63
|
};
|
64
64
|
newPromise = result.then(promiseCallback, promiseCallback);
|
65
65
|
flag(this, 'object', newPromise);
|
66
|
+
this.then = newPromise.then;
|
66
67
|
} else {
|
67
68
|
for (_j = 0, _len1 = definedActions.length; _j < _len1; _j++) {
|
68
69
|
action = definedActions[_j];
|
@@ -121,8 +121,8 @@
|
|
121
121
|
done();
|
122
122
|
}
|
123
123
|
};
|
124
|
-
this._wrappedFn.toString = function() {
|
125
|
-
|
124
|
+
this._wrappedFn.toString = function () {
|
125
|
+
return fn.toString();
|
126
126
|
};
|
127
127
|
}
|
128
128
|
},
|
@@ -130,8 +130,7 @@
|
|
130
130
|
configurable: true,
|
131
131
|
enumerable: true,
|
132
132
|
get: function () {
|
133
|
-
|
134
|
-
return true;
|
133
|
+
return typeof this._wrappedFn === "function";
|
135
134
|
},
|
136
135
|
set: function () {
|
137
136
|
// Ignore Mocha trying to set this; it doesn't know the whole picture.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: konacha-chai-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A set of Chai.js libraries ready to use for Konacha
|
15
15
|
email:
|