Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

add unit test coverage for PanelService

Aperta Adatta ai principianti
#6,262 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend, testing

Direzione di ricerca

Leggi frontend/src/app/workspace/service/panel/panel.service.ts e segui lo stile semplice describe/it/expect in size-formatter.util.spec.ts. Aggiungi frontend/src/app/workspace/service/panel/panel.service.spec.ts, quindi esegui ng test. Il lavoro è completato quando resetPanels() e closePanels() emettono ciascuno una volta sul proprio stream e non emettono mai sull’altro stream.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

starter-task
Task Summary

Add panel.service.spec.ts covering PanelService, a tiny event bus that exposes two Subject<void> streams (closePanelStream, resetPanelStream) with closePanels() / resetPanels() triggers.

Background

frontend/src/app/workspace/service/panel/panel.service.ts is a dependency-free service (instantiable directly via new PanelService()), so no TestBed wiring is required.

get resetPanelStream() { return this.resetPanelSubject.asObservable(); }
resetPanels() { this.resetPanelSubject.next(); }
get closePanelStream() { return this.closePanelSubject.asObservable(); }
closePanels() { this.closePanelSubject.next(); }

Behavior to pin

Scenario Contract
subscribe resetPanelStream, call resetPanels() subscriber fires exactly once
subscribe closePanelStream, call closePanels() subscriber fires exactly once
stream independence calling resetPanels() does not emit on closePanelStream, and vice-versa

Subscribe to the stream, invoke the trigger, and assert the emission count (e.g. increment a counter in the subscription). Follow size-formatter.util.spec.ts for the plain describe/it/expect style (ng test).

Scope

  • New spec: frontend/src/app/workspace/service/panel/panel.service.spec.ts.
  • No production-code changes.
Task Type
  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other
Lingua principale
Scala
Stelle
316
Fork
192
Merge medio
3g 7h
PR unite (30g)
129

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/texera

Tutte le issue di apache/texera

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.