fengxiang
2018-07-12 655edbc7405188c4bb32e63bf52a9a31ac00d75c
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 { MapsBaiduComponent } from './baidu.component';
import { AbmModule } from 'angular-baidu-maps';
 
describe('Component: MapsBaidu', () => {
    setUpTestBed(<TestModuleMetadata>{
        declarations: [ MapsBaiduComponent ],
        imports: [
            AbmModule.forRoot({
                apiKey: 'p3HIQIqLqKVQOXao1IiLp5O0eTFakjEP' // app key为必选项
            })
        ]
    });
 
    it('should create an instance', () => {
        const fixture = TestBed.createComponent(MapsBaiduComponent);
        const comp = fixture.debugElement.componentInstance;
        expect(comp).toBeTruthy();
    });
});