google-map-react/develop/tests/playground.spec.js
Ivan 7c8ec7a2bb #add newBounds to fitBounds utils (#202)
* #add newBounds to fitBounds utils

* #fix by lint rules

* remove npm debug.log

* #fix eslint by disable lines
2016-07-24 21:40:32 +03:00

19 lines
607 B
JavaScript

/* eslint-disable max-len */
// `npm bin`/mocha --compilers js:babel-register --require babel-polyfill --reporter min --watch './develop/**/*.spec.js'
/* eslint-enable max-len */
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import 'rxjs/add/operator/distinctUntilChanged';
describe('Playground', () => {
it('Play', async () => {
const comparator = (a, b) => a === b;
const props$ = (new BehaviorSubject(1))
.distinctUntilChanged(comparator);
props$.subscribe(v => console.log(v)); // eslint-disable-line
props$.next(1);
props$.next(2);
props$.next(1);
});
});