mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 11:26:51 +00:00
changing action name for getting offices in alphabetical order
This commit is contained in:
parent
5020c334b1
commit
95e1bfa84a
@ -3,7 +3,7 @@
|
||||
CreateEmployeeController: function (scope, resourceFactory, location, dateFilter) {
|
||||
scope.offices = [];
|
||||
scope.restrictDate = new Date();
|
||||
resourceFactory.officeResource.getAllOfficesAlphabetically(function (data) {
|
||||
resourceFactory.officeResource.getAllOfficesInAlphabeticalOrder(function (data) {
|
||||
scope.offices = data;
|
||||
scope.formData = {
|
||||
isLoanOfficer: true,
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
}),
|
||||
officeResource: defineResource(apiVer + "/offices/:officeId", {officeId: "@officeId"}, {
|
||||
getAllOffices: {method: 'GET', params: {}, isArray: true},
|
||||
getAllOfficesAlphabetically: {method: 'GET', params: {orderBy: 'name', sortOrder: 'ASC'}, isArray: true},
|
||||
getAllOfficesInAlphabeticalOrder: {method: 'GET', params: {orderBy: 'name', sortOrder: 'ASC'}, isArray: true},
|
||||
update: { method: 'PUT'}
|
||||
}),
|
||||
clientResource: defineResource(apiVer + "/clients/:clientId/:anotherresource", {clientId: '@clientId', anotherresource: '@anotherresource'}, {
|
||||
|
||||
@ -33,7 +33,7 @@ describe("ResourceFactoryProvider", function () {
|
||||
it("should define the Office resource", function () {
|
||||
expect(ngResource).toHaveBeenCalledWith(apiVersion + "/offices/:officeId", {officeId: "@officeId"}, {
|
||||
getAllOffices: {method: 'GET', params: {}, isArray: true},
|
||||
getAllOfficesAlphabetically: {method: 'GET', params: {orderBy: 'name', sortOrder: 'ASC'}, isArray: true},
|
||||
getAllOfficesInAlphabeticalOrder: {method: 'GET', params: {orderBy: 'name', sortOrder: 'ASC'}, isArray: true},
|
||||
update: {method: 'PUT'}
|
||||
});
|
||||
expect(this.factory.officeResource).toEqual("test_resource");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user