| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e2d2ce6 commit 544e64d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) { | |||
| 44 | 44 | let response = ''; | |
| 45 | 45 | ||
| 46 | 46 | process.on('exit', function() { | |
| 47 | - assert.strictEqual('beep boop\n', response); | ||
| 47 | + assert.strictEqual(response, 'beep boop\n'); | ||
| 48 | 48 | console.log('ok'); | |
| 49 | 49 | }); | |
| 50 | 50 | ||
| 51 | 51 | server.listen(0, function() { | |
| 52 | 52 | http.get({ port: this.address().port }, function(res) { | |
| 53 | - assert.strictEqual(200, res.statusCode); | ||
| 53 | + assert.strictEqual(res.statusCode, 200); | ||
| 54 | 54 | assert.deepStrictEqual(res.headers, { date: 'coffee o clock' }); | |
| 55 | 55 | ||
| 56 | 56 | res.setEncoding('ascii'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments