Export more types, add stub for common-map library
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
25
projects/common-map/src/lib/common-map.component.spec.ts
Normal file
25
projects/common-map/src/lib/common-map.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CommonMapComponent } from './common-map.component';
|
||||
|
||||
describe('CommonMapComponent', () => {
|
||||
let component: CommonMapComponent;
|
||||
let fixture: ComponentFixture<CommonMapComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ CommonMapComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CommonMapComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
19
projects/common-map/src/lib/common-map.component.ts
Normal file
19
projects/common-map/src/lib/common-map.component.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'lib-common-map',
|
||||
template: `
|
||||
<p>
|
||||
common-map works!
|
||||
</p>
|
||||
`,
|
||||
styles: []
|
||||
})
|
||||
export class CommonMapComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
10
projects/common-map/src/lib/common-map.module.ts
Normal file
10
projects/common-map/src/lib/common-map.module.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonMapComponent } from './common-map.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [CommonMapComponent],
|
||||
imports: [
|
||||
],
|
||||
exports: [CommonMapComponent]
|
||||
})
|
||||
export class CommonMapModule { }
|
12
projects/common-map/src/lib/common-map.service.spec.ts
Normal file
12
projects/common-map/src/lib/common-map.service.spec.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CommonMapService } from './common-map.service';
|
||||
|
||||
describe('CommonMapService', () => {
|
||||
beforeEach(() => TestBed.configureTestingModule({}));
|
||||
|
||||
it('should be created', () => {
|
||||
const service: CommonMapService = TestBed.get(CommonMapService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
9
projects/common-map/src/lib/common-map.service.ts
Normal file
9
projects/common-map/src/lib/common-map.service.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class CommonMapService {
|
||||
|
||||
constructor() { }
|
||||
}
|
Reference in New Issue
Block a user