Commit 326426ee authored by Arnout Kazemier's avatar Arnout Kazemier

[test] Reformatted the tests, 2 space indent

parent 970de1dd
......@@ -217,14 +217,13 @@ describe("Memcached GET SET", function() {
assert.ok(!error);
assert.ok(!Array.isArray(answer) && typeof answer == 'object');
assert.ok(JSON.stringify(message) == JSON.stringify(answer));
assert.ok(!Array.isArray(answer) && typeof answer === 'object');
assert.ok(JSON.stringify(message) === JSON.stringify(answer));
memcached.end(); // close connections
assert.equal(callbacks, 2);
done();
});
});
});
/**
......@@ -233,20 +232,17 @@ describe("Memcached GET SET", function() {
*/
it("set and get a array", function(done) {
var memcached = new Memcached(common.servers.single)
, message = [
{
, message = [{
numbers: common.numbers(256)
, alphabet: common.alphabet(256)
, dates: new Date()
, arrays: [1,2,3, 'foo', 'bar']
}
, {
}, {
numbers: common.numbers(256)
, alphabet: common.alphabet(256)
, dates: new Date()
, arrays: [1,2,3, 'foo', 'bar']
}
]
}]
, testnr = ++global.testnumbers
, callbacks = 0;
......@@ -262,7 +258,7 @@ describe("Memcached GET SET", function() {
assert.ok(!error);
assert.ok(Array.isArray(answer));
assert.ok(JSON.stringify(answer) == JSON.stringify(message));
assert.ok(JSON.stringify(answer) === JSON.stringify(message));
memcached.end(); // close connections
assert.equal(callbacks, 2);
done();
......@@ -603,7 +599,7 @@ describe("Memcached GET SET", function() {
++callbacks;
assert.ok(error);
assert.ok(error.message == 'The key should not contain any whitespace or new lines')
assert.ok(error.message === 'The key should not contain any whitespace or new lines');
done();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment