Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit dce4f95

Browse files
author
george
committed
Merge branch 'develop'
2 parents d5e49f5 + d42e4e5 commit dce4f95

File tree

167 files changed

+3273
-1589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+3273
-1589
lines changed

.browserslistrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ chrome >= 49
44
safari >= 10
55
android >= 4.4
66
ios >= 9
7-
not ie <= 11
8-
not op_mini all
7+
ie 11
8+
not op_mini all

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Undernet](src/assets/images/github-logo.png?raw=true)
1+
![Undernet](site/assets/images/github-logo.png?raw=true)
22

33
[![CircleCI](https://circleci.com/gh/geotrev/undernet/tree/master.svg?style=svg)](https://circleci.com/gh/geotrev/undernet/tree/master) [![devDependencies Status](https://david-dm.org/geotrev/undernet/dev-status.svg)](https://david-dm.org/geotrev/undernet?type=dev) [![dependencies Status](https://david-dm.org/geotrev/undernet.svg)](https://david-dm.org/geotrev/undernet) [![npm version](https://badge.fury.io/js/undernet.svg)](https://badge.fury.io/js/undernet) ![Code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)
44

config/mocha.undernet.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const dom = new JSDOM("<!doctype html><html><head></head><body></body></html>")
99
const { window } = dom
1010
global.window = window
1111
global.document = window.document
12+
global.navigator = { userAgent: "node" }
1213

1314
/**
1415
* Create and fire a keyboard event.
@@ -26,3 +27,13 @@ global.window.simulateKeyPress = (which, shiftKey = false, node = null) => {
2627

2728
return node ? node.dispatchEvent(event) : document.dispatchEvent(event)
2829
}
30+
31+
global.window.simulateMouseEvent = (name, node = null, bubbles = false, cancelable = false) => {
32+
const event = new MouseEvent(name, {
33+
bubbles: bubbles || true,
34+
cancelable: cancelable || true,
35+
relatedTarget: window
36+
})
37+
38+
return node ? node.dispatchEvent(event) : document.dispatchEvent(event)
39+
}

0 commit comments

Comments
 (0)