mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-07 16:01:09 +02:00
final test fixes
copy pasta is bad
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user