'use strict';
import { BrowserDomAdapter } from '@angular/platform-browser/src/browser/browser_adapter';
import {
it
} from '@angular/core/testing';
import { OptionsService } from './options.service';
describe('Options Service', () => {
let tmpDiv;
let optionsService;
function build(html) {
tmpDiv = document.createElement('div');
tmpDiv.innerHTML = html;
document.body.appendChild(tmpDiv);
return tmpDiv.lastChild;
}
afterEach(() => {
document.body.removeChild(tmpDiv);
});
beforeEach(() => {
optionsService = new OptionsService(new BrowserDomAdapter());
});
it('should parse numeric scrollYOffset', () => {
var elem = build(`