An open API service indexing awesome lists of open source software.

https://github.com/ruslansagitov/jasmine-loud

Jasmine matchers for Loud, web accessibility testing helper
https://github.com/ruslansagitov/jasmine-loud

accessibility jasmine-matchers testing

Last synced: 5 months ago
JSON representation

Jasmine matchers for Loud, web accessibility testing helper

Awesome Lists containing this project

README

          

# jasmine-loud [![Build Status](https://github.com/ruslansagitov/jasmine-loud/actions/workflows/test.yaml/badge.svg)](https://github.com/ruslansagitov/jasmine-loud/actions/workflows/test.yaml) [![Coverage Status](https://coveralls.io/repos/ruslansagitov/jasmine-loud/badge.svg)](https://coveralls.io/r/ruslansagitov/jasmine-loud)

[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:

```html

```

## Jasmine Matchers

### toBeSaid()

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

[Jasmine]: "Jasmine — Behavior-Driven JavaScript"
[Loud]: "Loud — Web accessibility testing helper"
[npm]: "npm — A package manager for JavaScript"
[bower]: "Bower — A package manager for the web"