users: getAll -> list
This commit is contained in:
@@ -451,7 +451,7 @@ describe('External LDAP', function () {
|
||||
externalldap.sync(function progress() {}, function (error) {
|
||||
expect(error).to.equal(null);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(2);
|
||||
expect(result.find(function (u) {
|
||||
@@ -470,7 +470,7 @@ describe('External LDAP', function () {
|
||||
externalldap.sync(function progress() {}, function (error) {
|
||||
expect(error).to.equal(null);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(2);
|
||||
expect(result.find(function (u) {
|
||||
@@ -492,7 +492,7 @@ describe('External LDAP', function () {
|
||||
externalldap.sync(function progress() {}, function (error) {
|
||||
expect(error).to.equal(null);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(2);
|
||||
expect(result.find(function (u) {
|
||||
@@ -671,7 +671,7 @@ describe('External LDAP', function () {
|
||||
.end(function (error, result) {
|
||||
expect(result.statusCode).to.equal(401);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(2);
|
||||
expect(result.find(function (u) {
|
||||
@@ -696,7 +696,7 @@ describe('External LDAP', function () {
|
||||
.end(function (error, result) {
|
||||
expect(result.statusCode).to.equal(401);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(2);
|
||||
expect(result.find(function (u) {
|
||||
@@ -720,7 +720,7 @@ describe('External LDAP', function () {
|
||||
.end(function (error, result) {
|
||||
expect(result.statusCode).to.equal(401);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(3);
|
||||
expect(result.find(function (u) {
|
||||
@@ -744,7 +744,7 @@ describe('External LDAP', function () {
|
||||
.end(function (error, result) {
|
||||
expect(result.statusCode).to.equal(200);
|
||||
|
||||
users.getAll(function (error, result) {
|
||||
users.list(function (error, result) {
|
||||
expect(error).to.equal(null);
|
||||
expect(result.length).to.equal(4);
|
||||
expect(result.find(function (u) {
|
||||
|
||||
Reference in New Issue
Block a user