mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
18 lines
460 B
Text
18 lines
460 B
Text
|
// import Rx from 'rx-lite-testing'
|
||
|
import {events} from './fixtures/events'
|
||
|
import {CalendarDataSource} from 'nylas-exports'
|
||
|
|
||
|
export default class TestDataSource extends CalendarDataSource {
|
||
|
buildObservable({startTime, endTime}) {
|
||
|
this.endTime = endTime;
|
||
|
this.startTime = startTime;
|
||
|
return this
|
||
|
}
|
||
|
|
||
|
subscribe(onNext) {
|
||
|
onNext({events})
|
||
|
this.unsubscribe = jasmine.createSpy("unusbscribe");
|
||
|
return {dispose: this.unsubscribe}
|
||
|
}
|
||
|
}
|