mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-21 20:11:47 +02:00
Add services
This commit is contained in:
parent
281e8b5211
commit
e989189055
16
frontend/ng-karaoqueue/src/app/entry-service.service.spec.ts
Normal file
16
frontend/ng-karaoqueue/src/app/entry-service.service.spec.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { EntryServiceService } from './entry-service.service';
|
||||||
|
|
||||||
|
describe('EntryServiceService', () => {
|
||||||
|
let service: EntryServiceService;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({});
|
||||||
|
service = TestBed.inject(EntryServiceService);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
9
frontend/ng-karaoqueue/src/app/entry-service.service.ts
Normal file
9
frontend/ng-karaoqueue/src/app/entry-service.service.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class EntryServiceService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
16
frontend/ng-karaoqueue/src/app/song-service.service.spec.ts
Normal file
16
frontend/ng-karaoqueue/src/app/song-service.service.spec.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { SongServiceService } from './song-service.service';
|
||||||
|
|
||||||
|
describe('SongServiceService', () => {
|
||||||
|
let service: SongServiceService;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({});
|
||||||
|
service = TestBed.inject(SongServiceService);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
17
frontend/ng-karaoqueue/src/app/song-service.service.ts
Normal file
17
frontend/ng-karaoqueue/src/app/song-service.service.ts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
||||||
|
import { Song } from './models/song.model';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class SongServiceService {
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private http: HttpClient
|
||||||
|
) {}
|
||||||
|
|
||||||
|
searchSongByText(text:string):Array<Song> {
|
||||||
|
return [new Song()];
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user