沈斌
2017-12-15 f9b157566af34b8dc28ba10b34d025ac04f3168b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { TestBed, TestModuleMetadata } from '@angular/core/testing';
import { setUpTestBed } from '../../../../testing/common.spec';
 
import { MapsQQComponent } from './qq.component';
import { AqmModule } from 'angular-qq-maps';
 
describe('Component: MapsQQ', () => {
    setUpTestBed(<TestModuleMetadata>{
        declarations: [ MapsQQComponent ],
        imports: [
            AqmModule.forRoot({
                apiKey: 'I3TBZ-QTN3J-MWPFI-FERMS-IBOCQ-LBBWY' // app key为必选项
            })
        ]
    });
 
    it('should create an instance', () => {
        const fixture = TestBed.createComponent(MapsQQComponent);
        const comp = fixture.debugElement.componentInstance;
        expect(comp).toBeTruthy();
    });
});