jasmine-loud

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i jasmine-loud

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

5.16 kB

Total Files

4

Last publish

Collaborators

  • ruslansagitov