Skip to content

Commit

Permalink
remove id.asc
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3RO-O committed Mar 6, 2025
1 parent 7108813 commit 706c989
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/app/core/services/org-user.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('OrgUserService', () => {
spenderPlatformV1ApiService.get.and.returnValue(of(employeesRes));
const params = {
limit: 5,
order: 'full_name.asc,id.asc',
order: 'full_name.asc',
id: 'neq.ouX8dwsbLCLv',
roles: 'like.%ADMIN%',
is_enabled: 'eq.true',
Expand All @@ -124,7 +124,7 @@ describe('OrgUserService', () => {

it('should be able to get employees by search with OR param', (done) => {
const params = {
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
email: 'in.([email protected])',
or: '(is_enabled.eq.true)',
and: '(or(is_enabled.eq.true),or(is_enabled.eq.true))',
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/help/help.page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('HelpPage', () => {
is_enabled: 'eq.true',
has_accepted_invite: 'eq.true',
id: 'neq.ouX8dwsbLCLv',
order: 'full_name.asc,id.asc',
order: 'full_name.asc',
limit: 5,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('ApproverDialogComponent', () => {
loaderService.hideLoader.and.resolveTo(null);

const params = {
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
email: `in.(${component.approverEmailsList.join(',')})`,
};

Expand All @@ -241,7 +241,7 @@ describe('ApproverDialogComponent', () => {
fixture.detectChanges();

const params = {
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
limit: 20,
};

Expand Down Expand Up @@ -281,7 +281,7 @@ describe('ApproverDialogComponent', () => {
]);
expect(orgUserService.getEmployeesBySearch).toHaveBeenCalledWith({
limit: 20,
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
or: '(email.ilike.*text*,full_name.ilike.*text*)',
});
done();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('FyUserlistModalComponent', () => {

it('should get default users list', (done) => {
const params = {
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
email:
'in.([email protected],[email protected],[email protected],[email protected],[email protected],[email protected])',
};
Expand All @@ -201,7 +201,7 @@ describe('FyUserlistModalComponent', () => {

it('should get default users list with empty params', () => {
component.currentSelections = [];
const params = { limit: 20, order: 'full_name.asc,email.asc,id.asc' };
const params = { limit: 20, order: 'full_name.asc,email.asc' };

component.getDefaultUsersList();
fixture.detectChanges();
Expand All @@ -213,7 +213,7 @@ describe('FyUserlistModalComponent', () => {
it('getSearchedUsersList(): should get the searched user list', fakeAsync(() => {
const params = {
limit: 20,
order: 'full_name.asc,email.asc,id.asc',
order: 'full_name.asc,email.asc',
or: '(email.ilike.*[email protected]*,full_name.ilike.*[email protected]*)',
};
const employeesData = cloneDeep(employeesParamsRes.data);
Expand Down

0 comments on commit 706c989

Please sign in to comment.