Skip to content

Instantly share code, notes, and snippets.

@OliverJAsh
Created April 3, 2020 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OliverJAsh/5c1f12efb8f0e1e75b6fc7c9d480c17c to your computer and use it in GitHub Desktop.
Save OliverJAsh/5c1f12efb8f0e1e75b6fc7c9d480c17c to your computer and use it in GitHub Desktop.
describe.only('createDataCron', () => {
it(
'init',
marbles(m => {
const source$ = m.cold('--a| ');
const sourceS = ' ^------';
const ms = m.time(' ------|');
const expected = ' --a| ';
const cron = createDataCron(source$, ms);
const actual$ = cron.latestData$;
m.expect(actual$).toBeObservable(expected);
m.expect(source$).toHaveSubscriptions(sourceS);
cron.connect()
}),
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment