This commit is contained in:
2025-01-01 15:16:24 +01:00
parent a9bf3781e0
commit 14cdc06de5
18 changed files with 1636 additions and 46 deletions

View File

@@ -13,4 +13,14 @@ describe('PokeShareInfoService', () => {
it('should be created', () => {
expect(service).toBeTruthy();
});
it('should set value when setValue is called', (done) => {
const testValue = 'Test Value';
service.getObservable().subscribe((value) => {
expect(value).toBe(testValue);
done();
});
service.setValue(testValue);
});
});