0.11.7 • Published 8 years ago

maquette-query v0.11.7

Weekly downloads
62
License
MIT
Repository
github
Last release
8 years ago

maquette-query

Query utility for maquette's virtual DOM

First of all, querying a virtual DOM makes no sense in production code. There is however one area that benefits from querying: unit tests. Maquette-query makes unit testing both easy and expressive.

Maquette-query provides a querySelector-like API to query the virtual DOM. It also facilitate firing events for common user interactions.

Consider the following code to test the 'hello you' demonstration from maquettejs.org.

let projector = createTestProjector(renderMaquette);
let input = projector.query('input');
let output = projector.query('.output');

input.simulate.input({ value: 'John' });
expect(output.textContent).to.equal('Hello John!');

For the complete sourcecode see here

If you find anything missing, do not hesitate to issue a pull request.

0.11.7

8 years ago

0.11.6

8 years ago

0.11.5

8 years ago

0.11.4

8 years ago

0.11.2

9 years ago

0.11.0

9 years ago

0.10.1

9 years ago

0.10.0

9 years ago

0.9.0

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.7.5

9 years ago

0.7.4

9 years ago

0.7.3

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.4

10 years ago

0.6.3

10 years ago

0.6.2

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago