1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

chore: use standard

This commit is contained in:
Ruben Bridgewater
2017-05-06 07:06:52 +02:00
parent 5d29f541e9
commit f1a7bcd735
106 changed files with 10706 additions and 10978 deletions

View File

@@ -1,20 +1,20 @@
// Spawned by the goodStacks.spec.js tests
'use strict';
'use strict'
var assert = require('assert');
var redis = require('../../index');
var client = redis.createClient();
var assert = require('assert')
var redis = require('../../index')
var client = redis.createClient()
// Both error cases would normally return bad stack traces
client.set('foo', function (err, res) {
assert(/good-traces.js:9:8/.test(err.stack));
client.set('foo', 'bar', function (err, res) {
assert(/good-traces.js:11:12/.test(err.stack));
client.quit(function () {
process.exit(0);
});
});
process.nextTick(function () {
client.stream.destroy();
});
});
assert(/good-traces.js:9:8/.test(err.stack))
client.set('foo', 'bar', function (err, res) {
assert(/good-traces.js:11:10/.test(err.stack))
client.quit(function () {
process.exit(0)
})
})
process.nextTick(function () {
client.stream.destroy()
})
})