Skip to content

Commit 2cd1c85

Browse files
dsteelma-umdPerplexity AI
andcommitted
LIBDRUM-1005. Test cleanup - remove extraneous waitForAsync
These were overlooked in the initial cleanup. Co-authored-by: Perplexity AI <noreply@perplexity.ai> https://umd-dit.atlassian.net/browse/LIBDRUM-1005
1 parent 5dd3fa2 commit 2cd1c85

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/restricted-access/restricted-access.component.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ describe('RestrictedAccessComponent', () => {
147147

148148
verify401StatusCodeAndNoRedirectToDownload();
149149

150-
it('should set the restrictedAccessMessage indicating the file is embargoed forever', waitForAsync(() => {
150+
it('should set the restrictedAccessMessage indicating the file is embargoed forever', () => {
151151
expect(component.restrictedAccessMessage.value).toBe('bitstream.restricted-access.embargo.forever.message');
152-
}));
152+
});
153153
});
154154

155155
describe('when there is an embargo end date', () => {
@@ -248,7 +248,7 @@ describe('RestrictedAccessComponent', () => {
248248
});
249249
});
250250

251-
describe('returns 403 Forbidden with a generic message when no filename is not provided', () => {
251+
describe('returns 403 Forbidden with a generic message when a filename is not provided', () => {
252252
beforeEach(waitForAsync(() => {
253253
init({ metadata: {} });
254254
(authService.isAuthenticated as jasmine.Spy).and.returnValue(observableOf(true));
@@ -262,10 +262,10 @@ describe('RestrictedAccessComponent', () => {
262262
fixture.detectChanges();
263263
});
264264

265-
it('should set the generic forbidden message', waitForAsync(() => {
265+
it('should set the generic forbidden message', () => {
266266
expect(component.restrictedAccessMessage.value).toBe(
267267
'bitstream.restricted-access.user.forbidden.generic.message');
268-
}));
268+
});
269269
});
270270

271271
describe('allows access to the file when the user is authorized', () => {

0 commit comments

Comments
 (0)