mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-27 02:41:55 +00:00
move client from separate repo
This commit is contained in:
18
client/tests/mocks/source.mock.ts
Normal file
18
client/tests/mocks/source.mock.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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 { }
|
||||
}
|
||||
Reference in New Issue
Block a user