test-drive
Advanced tools
Comparing version 0.0.146 to 0.0.147
@@ -10,1 +10,2 @@ /// <reference path="../../matchers.d.ts" /> | ||
export { chai, sinon, expect, layout }; | ||
export * from './trigger'; |
@@ -10,1 +10,2 @@ /// <reference path="../../matchers.d.ts" /> | ||
export { chai, sinon, expect, layout }; | ||
export * from './trigger'; |
@@ -28,2 +28,3 @@ "use strict"; | ||
__export(require("./wait-for")); | ||
__export(require("./trigger")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "test-drive", | ||
"version": "0.0.146", | ||
"version": "0.0.147", | ||
"description": "Opinionated library for writing web component tests", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -93,2 +93,14 @@ # Test Drive | ||
### Event Triggering | ||
The `trigger.*` module lets you trigger native DOM events, enabling emulation | ||
of user interactions in interface tests. | ||
```javascript | ||
trigger.change(target, "newValue") | ||
``` | ||
will set `"newValue"` as a new `.value` of an input element (`input`, `select` and `textarea` | ||
elements are supported), and trigger `focus`, `input` and `change` events. | ||
### Layout Matchers | ||
@@ -95,0 +107,0 @@ |
@@ -23,1 +23,2 @@ /// <reference path="../matchers.d.ts" /> | ||
export { chai, sinon, expect, layout }; | ||
export * from './trigger'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3702493
44
15331
184