mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
import { Observable } from 'rxjs'
|
|
import { UpdateReal } from '../../lib/sequence-store'
|
|
import { Source } from '../../lib/source/source'
|
|
|
|
export class MockSource<T> implements Source<T> {
|
|
|
|
constructor (
|
|
private readonly mockData: Observable<UpdateReal<T>>,
|
|
) { }
|
|
|
|
watch$ (): Observable<UpdateReal<T>> {
|
|
return this.mockData
|
|
}
|
|
|
|
start (): void { }
|
|
|
|
stop (): void { }
|
|
}
|