@sprucelabs/mercury-chunking-emitter 2.2.7 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,6 +27,9 @@ class MockChunkingEmitter {
|
|
|
27
27
|
this.emittedTarget = target;
|
|
28
28
|
this.emittedCursor = cursor;
|
|
29
29
|
this.emittedPayload = payload;
|
|
30
|
+
if (items && cursor) {
|
|
31
|
+
test_utils_1.assert.fail(`You can only pass either 'items' or a 'batchCursor' to emit, not both.`);
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
assertDidEmitTarget(target) {
|
|
32
35
|
test_utils_1.assert.isEqualDeep(this.emittedTarget, target, 'You did not chunkingEmitter.emit(...) the expected target!');
|
|
@@ -32,6 +32,9 @@ export default class MockChunkingEmitter {
|
|
|
32
32
|
this.emittedTarget = target;
|
|
33
33
|
this.emittedCursor = cursor;
|
|
34
34
|
this.emittedPayload = payload;
|
|
35
|
+
if (items && cursor) {
|
|
36
|
+
assert.fail(`You can only pass either 'items' or a 'batchCursor' to emit, not both.`);
|
|
37
|
+
}
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
assertDidEmitTarget(target) {
|