Lines Matching refs:assert
6 const assert = require('assert');
39 assert.ok(typeof req === 'object');
44 assert.ok(res.length > 0);
47 assert.ok(isIPv4(res[i]));
65 assert.ok(res.length > 0);
68 assert.ok(res[i]);
69 assert.ok(typeof res[i] === 'string');
87 assert.ok(net.isIPv4(res.address));
88 assert.strictEqual(res.family, 4);
105 assert.ok(net.isIPv4(res.address));
106 assert.strictEqual(res.family, 4);
123 assert.ok(net.isIPv4(res.address));
124 assert.strictEqual(res.family, 4);
141 assert.ok(net.isIPv4(res.address));
142 assert.strictEqual(res.family, 4);
161 assert.strictEqual(res.address, '127.0.0.1');
162 assert.strictEqual(res.family, 4);
178 assert.strictEqual(res.address, '127.0.0.1');
179 assert.strictEqual(res.family, 4);
195 assert.ok(Array.isArray(res));
196 assert.ok(res.length > 0);
199 assert.ok(isIPv4(ip.address));
200 assert.strictEqual(ip.family, 4);
223 assert.strictEqual(typeof res.hostname, 'string');
224 assert(res.hostname);
225 assert(['http', 'www', '80'].includes(res.service));
244 assert.strictEqual(typeof hostname, 'string');
245 assert(hostname.length > 0);
246 assert(['http', 'www', '80'].includes(service));