We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04a8ee commit 08f12cbCopy full SHA for 08f12cb
test/__with__.test.js
@@ -176,6 +176,21 @@ describe("__with__", function() {
176
expect(moduleFake.getReference()).to.eql({});
177
});
178
179
+ it("should ignore any returned value which doesn't provide a then()-method", function () {
180
+ expect(moduleFake.getValue()).to.be(0);
181
+ expect(moduleFake.getReference()).to.eql({});
182
+
183
+ moduleFake.__with__({
184
+ myValue: 2,
185
+ myReference: newObj
186
+ })(function () {
187
+ return {};
188
+ });
189
190
191
192
193
194
195
196
0 commit comments