@ffflorian/mock-udp 1.7.4 → 1.7.5
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.
- package/dist/index.test.js +5 -5
- package/package.json +2 -2
package/dist/index.test.js
CHANGED
|
@@ -36,7 +36,7 @@ describe('mock-udp.clean', () => {
|
|
|
36
36
|
client.send(buffer, 0, buffer.length, 1000 + index, 'localhost');
|
|
37
37
|
assert.fail();
|
|
38
38
|
}
|
|
39
|
-
catch (
|
|
39
|
+
catch (_a) { }
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
});
|
|
@@ -105,7 +105,7 @@ describe('mock-udp.overriddenSocketSend', () => {
|
|
|
105
105
|
client.send(buffer, 0, buffer.length, 1000, 'localhost');
|
|
106
106
|
assert.fail();
|
|
107
107
|
}
|
|
108
|
-
catch (
|
|
108
|
+
catch (_a) {
|
|
109
109
|
done(void 0);
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -118,7 +118,7 @@ describe('mock-udp.overriddenSocketSend', () => {
|
|
|
118
118
|
client.send(buffer, buffer.length, buffer.length, 1000, 'localhost');
|
|
119
119
|
assert.fail();
|
|
120
120
|
}
|
|
121
|
-
catch (
|
|
121
|
+
catch (_a) { }
|
|
122
122
|
expect(scope.done()).toBe(false);
|
|
123
123
|
});
|
|
124
124
|
test('should throw an error if offset is greater than the length of the buffer', () => {
|
|
@@ -128,7 +128,7 @@ describe('mock-udp.overriddenSocketSend', () => {
|
|
|
128
128
|
client.send(buffer, buffer.length + 1, buffer.length, 1000, 'localhost');
|
|
129
129
|
assert.fail();
|
|
130
130
|
}
|
|
131
|
-
catch (
|
|
131
|
+
catch (_a) { }
|
|
132
132
|
expect(scope.done()).toBe(false);
|
|
133
133
|
});
|
|
134
134
|
test('should throw an error if the length is greater than the length of the buffer', () => {
|
|
@@ -138,7 +138,7 @@ describe('mock-udp.overriddenSocketSend', () => {
|
|
|
138
138
|
client.send(buffer, 0, buffer.length + 1, 1000, 'localhost');
|
|
139
139
|
assert.fail();
|
|
140
140
|
}
|
|
141
|
-
catch (
|
|
141
|
+
catch (_a) { }
|
|
142
142
|
expect(scope.done()).toBe(false);
|
|
143
143
|
});
|
|
144
144
|
});
|
package/package.json
CHANGED