summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-10 09:48:55 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-10 09:48:57 +0200
commit8a65df9baa934972f6da4543b89f92b132ed8007 (patch)
tree4bab28c353dbebe92e5673b18a8305bca0d4742b
parentb3b8e74dbf63cfb4d980b5cfc54c14aae071248d (diff)
downloadnode-new-8a65df9baa934972f6da4543b89f92b132ed8007.tar.gz
test: fix up indentation, replace tabs with spaces
-rw-r--r--test/simple/test-repl.js2
-rw-r--r--test/simple/test-tls-hello-parser-failure.js14
2 files changed, 8 insertions, 8 deletions
diff --git a/test/simple/test-repl.js b/test/simple/test-repl.js
index 2c04e2c1bd..622ee415d1 100644
--- a/test/simple/test-repl.js
+++ b/test/simple/test-repl.js
@@ -123,7 +123,7 @@ function error_test() {
{ client: client_unix, send: '.1234',
expect: '0.1234' },
// Floating point expressions are not interpreted as REPL commands
- { client: client_unix, send: '.1+.1',
+ { client: client_unix, send: '.1+.1',
expect: '0.2' },
// Can parse valid JSON
{ client: client_unix, send: 'JSON.parse(\'{"valid": "json"}\');',
diff --git a/test/simple/test-tls-hello-parser-failure.js b/test/simple/test-tls-hello-parser-failure.js
index cce94007f7..b6c0ac2283 100644
--- a/test/simple/test-tls-hello-parser-failure.js
+++ b/test/simple/test-tls-hello-parser-failure.js
@@ -42,20 +42,20 @@ var server = tls.createServer(options, function(c) {
var once = false;
- var writeAgain = setTimeout(function() {
- client.write(bonkers);
- });
+ var writeAgain = setTimeout(function() {
+ client.write(bonkers);
+ });
client.on('error', function(err) {
if (!once) {
- clearTimeout(writeAgain);
+ clearTimeout(writeAgain);
once = true;
client.destroy();
server.close();
}
});
- client.on('close', function (hadError) {
- assert.strictEqual(hadError, true, 'Client never errored');
- });
+ client.on('close', function (hadError) {
+ assert.strictEqual(hadError, true, 'Client never errored');
+ });
});