Skip to content

Commit 5dd3fa2

Browse files
dsteelma-umdPerplexity AI
andcommitted
LIBDRUM-1005. Fix ESLint "no-floating-promises" warning
Added "void" to "initTestBed" to fix a "no-floating-promises" warning from ESLint. This is okay, because the "initTestBed" function is only used within a "waitForAsync" block, which ensures that the promise is awaited and completed. Adding "void" signals to ESLint that Promise is intentionally not being awaited (as it is handled by "waitForAsync"). Co-authored-by: Perplexity AI <noreply@perplexity.ai> https://umd-dit.atlassian.net/browse/LIBDRUM-1005
1 parent a4d3514 commit 5dd3fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('RestrictedAccessComponent', () => {
9595
}
9696

9797
function initTestBed() {
98-
TestBed.configureTestingModule({
98+
void TestBed.configureTestingModule({
9999
imports: [
100100
TranslateModule.forRoot(),
101101
RestrictedAccessComponent,

0 commit comments

Comments
 (0)