Skip to content

Commit

Permalink
Merge branch 'newplatform/timefilter/observables' into newplatform/ti…
Browse files Browse the repository at this point in the history
…mefilter/ts
  • Loading branch information
Liza K committed Aug 22, 2019
2 parents 2f1d0bd + 7734bf6 commit ae97024
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,6 @@ describe('$executor service', () => {

afterEach(() => executor.destroy());

it('should register listener for fetch upon start', () => {
executor.start(scope);
const listeners = timefilter.listeners('fetch');
const handlerFunc = listeners.find(listener => {
return listener.name === 'reFetch';
});
expect(handlerFunc).to.not.be.null;
});

it('should register listener for refreshIntervalUpdate upon start', () => {
executor.start(scope);
const listeners = timefilter.listeners('refreshIntervalUpdate');
const handlerFunc = listeners.find(listener => {
return listener.name === 'killIfPaused';
});
expect(handlerFunc).to.not.be.null;
});

it('should not call $timeout if the timefilter is not paused and set to zero', () => {
executor.start(scope);
expect($timeout.callCount).to.equal(0);
Expand Down

0 comments on commit ae97024

Please sign in to comment.