| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fdde369 commit 6d1606e
29 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,7 +91,7 @@ function launchChildProcess(index) { | |||
| 91 | 91 | worker.pid, count); | |
| 92 | 92 | ||
| 93 | 93 | assert.strictEqual(count, messages.length, | |
| 94 | - 'A worker received an invalid multicast message'); | ||
| 94 | + 'A worker received an invalid multicast message'); | ||
| 95 | 95 | }); | |
| 96 | 96 | ||
| 97 | 97 | clearTimeout(timer); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -462,7 +462,7 @@ try { | |||
| 462 | 462 | } catch (e) { | |
| 463 | 463 | assert.equal(e.toString().split('\n')[0], 'AssertionError: oh no'); | |
| 464 | 464 | assert.equal(e.generatedMessage, false, | |
| 465 | - 'Message incorrectly marked as generated'); | ||
| 465 | + 'Message incorrectly marked as generated'); | ||
| 466 | 466 | } | |
| 467 | 467 | ||
| 468 | 468 | // Verify that throws() and doesNotThrow() throw on non-function block | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -645,18 +645,30 @@ assert.equal(Buffer.from('KioqKioqKioqKioqKioqKioqKio', 'base64').toString(), | |||
| 645 | 645 | '********************'); | |
| 646 | 646 | ||
| 647 | 647 | // handle padding graciously, multiple-of-4 or not | |
| 648 | - assert.equal(Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', | ||
| 649 | - 'base64').length, 32); | ||
| 650 | - assert.equal(Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', | ||
| 651 | - 'base64').length, 32); | ||
| 652 | - assert.equal(Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw', | ||
| 653 | - 'base64').length, 32); | ||
| 654 | - assert.equal(Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', | ||
| 655 | - 'base64').length, 31); | ||
| 656 | - assert.equal(Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', | ||
| 657 | - 'base64').length, 31); | ||
| 658 | - assert.equal(Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg', | ||
| 659 | - 'base64').length, 31); | ||
| 648 | + assert.equal( | ||
| 649 | + Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', 'base64').length, | ||
| 650 | + 32 | ||
| 651 | + ); | ||
| 652 | + assert.equal( | ||
| 653 | + Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', 'base64').length, | ||
| 654 | + 32 | ||
| 655 | + ); | ||
| 656 | + assert.equal( | ||
| 657 | + Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw', 'base64').length, | ||
| 658 | + 32 | ||
| 659 | + ); | ||
| 660 | + assert.equal( | ||
| 661 | + Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', 'base64').length, | ||
| 662 | + 31 | ||
| 663 | + ); | ||
| 664 | + assert.equal( | ||
| 665 | + Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', 'base64').length, | ||
| 666 | + 31 | ||
| 667 | + ); | ||
| 668 | + assert.equal( | ||
| 669 | + Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg', 'base64').length, | ||
| 670 | + 31 | ||
| 671 | + ); | ||
| 660 | 672 | ||
| 661 | 673 | // This string encodes single '.' character in UTF-16 | |
| 662 | 674 | var dot = Buffer.from('//4uAA==', 'base64'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -643,18 +643,30 @@ assert.equal(new Buffer('KioqKioqKioqKioqKioqKioqKio', 'base64').toString(), | |||
| 643 | 643 | '********************'); | |
| 644 | 644 | ||
| 645 | 645 | // handle padding graciously, multiple-of-4 or not | |
| 646 | - assert.equal(new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', | ||
| 647 | - 'base64').length, 32); | ||
| 648 | - assert.equal(new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', | ||
| 649 | - 'base64').length, 32); | ||
| 650 | - assert.equal(new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw', | ||
| 651 | - 'base64').length, 32); | ||
| 652 | - assert.equal(new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', | ||
| 653 | - 'base64').length, 31); | ||
| 654 | - assert.equal(new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', | ||
| 655 | - 'base64').length, 31); | ||
| 656 | - assert.equal(new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg', | ||
| 657 | - 'base64').length, 31); | ||
| 646 | + assert.equal( | ||
| 647 | + new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', 'base64').length, | ||
| 648 | + 32 | ||
| 649 | + ); | ||
| 650 | + assert.equal( | ||
| 651 | + new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', 'base64').length, | ||
| 652 | + 32 | ||
| 653 | + ); | ||
| 654 | + assert.equal( | ||
| 655 | + new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw', 'base64').length, | ||
| 656 | + 32 | ||
| 657 | + ); | ||
| 658 | + assert.equal( | ||
| 659 | + new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', 'base64').length, | ||
| 660 | + 31 | ||
| 661 | + ); | ||
| 662 | + assert.equal( | ||
| 663 | + new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', 'base64').length, | ||
| 664 | + 31 | ||
| 665 | + ); | ||
| 666 | + assert.equal( | ||
| 667 | + new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg', 'base64').length, | ||
| 668 | + 31 | ||
| 669 | + ); | ||
| 658 | 670 | ||
| 659 | 671 | // This string encodes single '.' character in UTF-16 | |
| 660 | 672 | var dot = new Buffer('//4uAA==', 'base64'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ var assert = require('assert'); | |||
| 4 | 4 | var cluster = require('cluster'); | |
| 5 | 5 | ||
| 6 | 6 | assert.equal('NODE_UNIQUE_ID' in process.env, false, | |
| 7 | - 'NODE_UNIQUE_ID should be removed on startup'); | ||
| 7 | + 'NODE_UNIQUE_ID should be removed on startup'); | ||
| 8 | 8 | ||
| 9 | 9 | function forEach(obj, fn) { | |
| 10 | 10 | Object.keys(obj).forEach(function(name, index) { | |
@@ -93,7 +93,7 @@ else if (cluster.isMaster) { | |||
| 93 | 93 | worker = cluster.fork(); | |
| 94 | 94 | assert.equal(worker.id, 1); | |
| 95 | 95 | assert.ok(worker instanceof cluster.Worker, | |
| 96 | - 'the worker is not a instance of the Worker constructor'); | ||
| 96 | + 'the worker is not a instance of the Worker constructor'); | ||
| 97 | 97 | ||
| 98 | 98 | //Check event | |
| 99 | 99 | forEach(checks.worker.events, function(bool, name, index) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -347,8 +347,11 @@ var a4 = crypto.createHash('sha1').update('Test123').digest('buffer'); | |||
| 347 | 347 | ||
| 348 | 348 | if (!common.hasFipsCrypto) { | |
| 349 | 349 | var a0 = crypto.createHash('md5').update('Test123').digest('binary'); | |
| 350 | - assert.equal(a0, 'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca' + | ||
| 351 | - '\u00bd\u008c', 'Test MD5 as binary'); | ||
| 350 | + assert.equal( | ||
| 351 | + a0, | ||
| 352 | + 'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca\u00bd\u008c', | ||
| 353 | + 'Test MD5 as binary' | ||
| 354 | + ); | ||
| 352 | 355 | } | |
| 353 | 356 | ||
| 354 | 357 | assert.equal(a1, '8308651804facb7b9af8ffc53a33a22d6a1c8ac2', 'Test SHA1'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,8 +39,11 @@ a8 = a8.read(); | |||
| 39 | 39 | ||
| 40 | 40 | if (!common.hasFipsCrypto) { | |
| 41 | 41 | var a0 = crypto.createHash('md5').update('Test123').digest('binary'); | |
| 42 | - assert.equal(a0, 'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca' + | ||
| 43 | - '\u00bd\u008c', 'Test MD5 as binary'); | ||
| 42 | + assert.equal( | ||
| 43 | + a0, | ||
| 44 | + 'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca\u00bd\u008c', | ||
| 45 | + 'Test MD5 as binary' | ||
| 46 | + ); | ||
| 44 | 47 | } | |
| 45 | 48 | assert.equal(a1, '8308651804facb7b9af8ffc53a33a22d6a1c8ac2', 'Test SHA1'); | |
| 46 | 49 | assert.equal(a2, '2bX1jws4GYKTlxhloUB09Z66PoJZW+y+hq5R8dnx9l4=', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ setTimeout(function firstTimer() { | |||
| 38 | 38 | d.dispose(); | |
| 39 | 39 | console.error(err); | |
| 40 | 40 | console.error('in domain error handler', | |
| 41 | - process.domain, process.domain === d); | ||
| 41 | + process.domain, process.domain === d); | ||
| 42 | 42 | }); | |
| 43 | 43 | ||
| 44 | 44 | d.run(function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,12 +8,12 @@ const d = domain.create(); | |||
| 8 | 8 | ||
| 9 | 9 | process.on('uncaughtException', common.mustCall(function onUncaught() { | |
| 10 | 10 | assert.equal(process.domain, null, | |
| 11 | - 'domains stack should be empty in uncaughtException handler'); | ||
| 11 | + 'domains stack should be empty in uncaughtException handler'); | ||
| 12 | 12 | })); | |
| 13 | 13 | ||
| 14 | 14 | process.on('beforeExit', common.mustCall(function onBeforeExit() { | |
| 15 | 15 | assert.equal(process.domain, null, | |
| 16 | - 'domains stack should be empty in beforeExit handler'); | ||
| 16 | + 'domains stack should be empty in beforeExit handler'); | ||
| 17 | 17 | })); | |
| 18 | 18 | ||
| 19 | 19 | d.run(function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,8 +62,8 @@ function runTestWithoutAbortOnUncaughtException() { | |||
| 62 | 62 | 'include domain\'s error\'s message'); | |
| 63 | 63 | ||
| 64 | 64 | assert.notEqual(err.code, 0, | |
| 65 | - 'child process should have exited with a non-zero exit code, ' + | ||
| 66 | - 'but did not'); | ||
| 65 | + 'child process should have exited with a non-zero ' + | ||
| 66 | + 'exit code, but did not'); | ||
| 67 | 67 | }); | |
| 68 | 68 | } | |
| 69 | 69 | ||
@@ -72,8 +72,8 @@ function runTestWithAbortOnUncaughtException() { | |||
| 72 | 72 | withAbortOnUncaughtException: true | |
| 73 | 73 | }), function onTestDone(err, stdout, stderr) { | |
| 74 | 74 | assert.notEqual(err.code, RAN_UNCAUGHT_EXCEPTION_HANDLER_EXIT_CODE, | |
| 75 | - 'child process should not have run its uncaughtException event ' + | ||
| 76 | - 'handler'); | ||
| 75 | + 'child process should not have run its uncaughtException ' + | ||
| 76 | + 'event handler'); | ||
| 77 | 77 | assert(common.nodeProcessAborted(err.code, err.signal), | |
| 78 | 78 | 'process should have aborted, but did not'); | |
| 79 | 79 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments