Skip to content

Jasmine matchers for Loud, web accessibility testing helper

License

Notifications You must be signed in to change notification settings

ruslansagitov/jasmine-loud

Repository files navigation

jasmine-loud Build Status Coverage Status Code Climate

Jasmine matchers for Loud, web accessibility testing helper

Getting Started

Get a release tarball, or clone the repository, or use npm, or bower:

bower install jasmine-loud --save-dev

Add ./lib/jasmine-loud.js to a testing page:

<script src="/path/to/jasmine-loud/lib/jasmine-loud.js"></script>

Jasmine Matchers

toBeSaid()

describe('jasmine-loud', function() {
    beforeEach(function() {
        this.button = document.createElement('button');
        this.button.innerHTML = 'Join';
        document.body.appendChild(this.button);
    });

    afterEach(function() {
        document.body.removeChild(this.button);
    });

    it('works', function() {
        expect(this.button).toBeSaid(['Join', 'button']);
    });
});