import expect from 'expectations';
import Tooltip from '../../../src/js/component/Tooltip.js';
import Base from '../../../src/js/component/Base.js';

describe('Tooltip', function () {
    it('gets exported as a default module', function () {
        expect(Tooltip).toBeDefined();
    });

    it('extends the `Base` class', function () {
        const target = new Element('button');
        const tooltip = new Tooltip(target);

        expect(instanceOf(tooltip, Base)).toEqual(true);
    });
});

@@ -443,47 +443,1452 @@
 ect(
-instanceOf(tooltip, Base)).toEqual(true
+tooltip instanceof Base).toBe(true);%0A    %7D);%0A%0A    context('when creating a new instance', function () %7B%0A        it('is hidden by default', function () %7B%0A            const button = new Element('button');%0A            const tooltip = new Tooltip(button);%0A            const element = tooltip.toElement();%0A%0A            expect(tooltip.hidden).toBe(true);%0A            expect(element.hasAttribute('hidden')).toBe(true);%0A        %7D);%0A%0A        it('sets the correct default options', function () %7B%0A            const button = new Element('button');%0A            const tooltip = new Tooltip(button);%0A%0A            expect(tooltip.options.hidden).toBe(true);%0A            expect(tooltip.options.axis).toEqual('both');%0A            expect(tooltip.options.content).toBeDefined();%0A            expect(typeof tooltip.options.content).toEqual('function');%0A        %7D);%0A%0A        it('creates the element with the correct CSS class', function () %7B%0A            const button = new Element('button');%0A            const tooltip = new Tooltip(button);%0A            const element = tooltip.toElement();%0A%0A            expect(element.hasClass('moovie-tooltip')).toBe(true);%0A        %7D);%0A%0A        it('creates the element with the correct role', function () %7B%0A            const button = new Element('button');%0A            const tooltip = new Tooltip(button);%0A            const element = tooltip.toElement();%0A%0A            expect(element.getAttribute('role')).toEqual('tooltip');%0A        %7D
 );%0A 

Add some tests