mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
cache group membership methods
groups.isMember groups.isMembers groups.isMemberOfGroups clear cache for user on group.join & group.leave
This commit is contained in:
@@ -23,6 +23,9 @@ describe('User', function() {
|
||||
testCid;
|
||||
|
||||
before(function(done) {
|
||||
var groups = require('../src/groups');
|
||||
groups.resetCache();
|
||||
|
||||
Categories.create({
|
||||
name: 'Test Category',
|
||||
description: 'A test',
|
||||
@@ -37,7 +40,7 @@ describe('User', function() {
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(function(){
|
||||
beforeEach(function() {
|
||||
userData = {
|
||||
username: 'John Smith',
|
||||
fullname: 'John Smith McNamara',
|
||||
|
||||
Reference in New Issue
Block a user