mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-04-02 05:03:08 +00:00
move client from separate repo
This commit is contained in:
committed by
Aiden McClelland
parent
d2f542a8f3
commit
9ad59a4d1a
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