final test fixes

copy pasta is bad
This commit is contained in:
barisusakli
2015-01-15 15:47:01 -05:00
parent d94668216d
commit 61f069a071
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ describe('Hash methods', function() {
});
it('should return 3 objects with correct data', function(done) {
db.getObjects(['testObject1', 'testObject2', 'doesnotexist'], function(err, objects) {
db.getObjects(['testObject4', 'testObject5', 'doesnotexist'], function(err, objects) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.equal(Array.isArray(objects) && objects.length === 3, true);
@@ -142,7 +142,7 @@ describe('Hash methods', function() {
describe('getObjectsFields()', function() {
before(function(done) {
async([
async.parallel([
async.apply(db.setObject, 'testObject8', {name: 'baris', age:99}),
async.apply(db.setObject, 'testObject9', {name: 'ginger', age: 3})
], done);

View File

@@ -99,7 +99,7 @@ describe('List methods', function() {
});
it('should remove the last element of list and return it', function(done) {
db.listRemoveLast('testList2', function(err, lastElement) {
db.listRemoveLast('testList4', function(err, lastElement) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.equal(lastElement, '12');