Skip to content

Commit a88856f

Browse files
committed
Fix demo app test.
1 parent 9348b47 commit a88856f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

projects/demo/src/app/app.component.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { HttpClientTestingModule } from '@angular/common/http/testing';
3+
import { API_KEY } from 'ng-google-sheets-db';
34

45
import { AppComponent } from './app.component';
56

@@ -9,6 +10,12 @@ describe('AppComponent', () => {
910
TestBed.configureTestingModule({
1011
declarations: [AppComponent],
1112
imports: [HttpClientTestingModule],
13+
providers: [
14+
{
15+
provide: API_KEY,
16+
useValue: 'some-fake-test-api-key',
17+
},
18+
],
1219
}).compileComponents();
1320
})
1421
);

0 commit comments

Comments
 (0)