Skip to content

Commit

Permalink
Update justice-users.service.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogagliardi committed Dec 3, 2024
1 parent f52da3e commit 36974da
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('JusticeUsersService', () => {
});

describe('clearUsers', () => {
it('should clear the search term', (done: DoneFn) => {
fit('should clear the search term', (done: DoneFn) => {
// arrange
clientApiSpy.getUserList.and.returnValue(of([]));

Expand All @@ -151,20 +151,6 @@ describe('JusticeUsersService', () => {
service.search('test');
service.clearUsers();
});

it('should trigger an emission from filteredUsers$', (done: DoneFn) => {
// arrange
clientApiSpy.getUserList.and.returnValue(of([]));

// act
service.clearUsers();

// assert
service.filteredUsers$.pipe(take(1)).subscribe(users => {
expect(users).toEqual([]);
done();
});
});
});

describe('addNewJusticeUser', () => {
Expand Down

0 comments on commit 36974da

Please sign in to comment.