<commit_before>import test from 'ava';
import inView from '../src/in-view';
import { inViewport } from '../src/viewport';

test('inView.is is a proxy for inViewport', t => {
    t.deepEqual(inView.is, inViewport);
});<commit_msg>Update inView.is test to ensure boolean<commit_after>import test from 'ava';
import inView from '../src/in-view';
import { inViewport } from '../src/viewport';

const stub = {
    getBoundingClientRect() {
        return {
            top: 50,
            right: 50,
            bottom: 50,
            left: 50
        };
    }
};

test('inView.is returns a boolean', t => {
    t.true(typeof inView.is(stub) === 'boolean');
    t.true(inView.is(stub));
});
{'fraction_non_alphanumeric': 0.16302765647743814, 'fraction_numerical': 0.011644832605531296, 'mean_word_length': 2.6210526315789475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3480099', 'n_tokens_mistral': 232, 'n_tokens_neox': 225, 'n_words': 59}