import test from 'ava';

test.todo('Write test for utils.inViewport');

import test from 'ava';
import { inViewport } from '../src/viewport';

window.innerWidth = 1280;
window.innerHeight = 700;

let stub = {
    getBoundingClientRect() {
        return {
            bottom: 232,
            height: 108,
            left: 196,
            right: 1084,
            top: 124,
            width: 888
        };
    }
};

test('inViewport returns a boolean', t => {
    t.true(typeof inViewport(stub) === 'boolean');
});

test('inViewport accepts an offset', t => {
    t.false(inViewport(stub, 250));
});

Add initial tests for inViewport
Add initial tests for inViewport
