test v1
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user