1.0.3 • Published 2 years ago

jasmine-loud v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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']);
    });
});