Skip to content

Node.js based forum software built for the modern web

fixes travis, #2588

Julian Lam1c497f842ab5
diff --git a/tests/groups.js b/tests/groups.js
index 6f36cbfa2c..3d24c6f5ae 100644
--- a/tests/groups.js
+++ b/tests/groups.js
@@ -13,14 +13,17 @@ describe('Groups', function() {
async.parallel([
function(next) {
// Create a group to play around with
- Groups.create('Test', 'Foobar!', next);
+ Groups.create({
+ name: 'Test',
+ description: 'Foobar!'
+ }, next);
},
function(next) {
// Create a new user
User.create({
username: 'testuser',
- }, done);
+ }, next);
},
function(next) {
// Also create a hidden group
@@ -166,7 +169,10 @@ describe('Groups', function() {
describe('.create()', function() {
it('should create another group', function(done) {
- Groups.create('foo', 'bar', function(err) {
+ Groups.create({
+ name: 'foo',
+ description: 'bar'
+ }, function(err) {
if (err) return done(err);
Groups.get('foo', {}, done);