feat: add star rating component and integrate it in HotelItem
This commit is contained in:
parent
ee61ef13db
commit
e8683dad06
6 changed files with 184 additions and 2 deletions
23
src/app/star-rating/star-rating.component.spec.ts
Normal file
23
src/app/star-rating/star-rating.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { StarRatingComponent } from './star-rating.component';
|
||||
|
||||
describe('StarRatingComponent', () => {
|
||||
let component: StarRatingComponent;
|
||||
let fixture: ComponentFixture<StarRatingComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [StarRatingComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(StarRatingComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue