(stderr, stdout)
| 16 | |
| 17 | tmpdir.refresh(); |
| 18 | function checkOutput(stderr, stdout) { |
| 19 | // We allow failures as it's not always possible to resolve localhost. |
| 20 | // Functional tests are done in test/internet instead. |
| 21 | if (!stderr.startsWith('error:')) { |
| 22 | assert.match(stdout, /address: "\d+\.\d+\.\d+\.\d+"/); |
| 23 | assert.match(stdout, /family: 4/); |
| 24 | assert.strictEqual(stdout.trim().split('\n').length, 2); |
| 25 | } |
| 26 | } |
| 27 | { |
| 28 | const { stderr, stdout } = buildSnapshot(entry, env); |
| 29 | checkOutput(stderr, stdout); |
no test coverage detected