users: getAll -> list

This commit is contained in:
Girish Ramakrishnan
2021-08-20 11:30:35 -07:00
parent dd16866e5a
commit 7ba3203625
5 changed files with 21 additions and 21 deletions
+7 -7
View File
@@ -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) {