Skip to content

Commit

Permalink
Update Mocha, Chai and React versions
Browse files Browse the repository at this point in the history
Tests are failing in IE9 with Mocha 5.
  • Loading branch information
vitalyq committed Feb 18, 2018
1 parent c70db55 commit 9d2fe4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ Open `test/test.html` in the browser.
To test with a different version of React, specify React and ReactDOM URLs in a query string:

```
?react=https://unpkg.com/react@15.5.4/dist/react.js&dom=https://unpkg.com/react-dom@15.5.4/dist/react-dom.js
?react=https://unpkg.com/react@16.2.0/umd/react.development.js&dom=https://unpkg.com/react-dom@16.2.0/umd/react-dom.development.js
```
10 changes: 5 additions & 5 deletions test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="https://unpkg.com/mocha@3.2.0/mocha.css">
<link rel="stylesheet" href="https://unpkg.com/mocha@4.1.0/mocha.css">
</head>
<body>
<div id="mocha"></div>

<script src="https://unpkg.com/mocha@3.2.0/mocha.js"></script>
<script src="https://unpkg.com/chai@3.5.0/chai.js"></script>
<script src="https://unpkg.com/mocha@4.1.0/mocha.js"></script>
<script src="https://unpkg.com/chai@4.1.2/chai.js"></script>
<script src="vendor/load-script-series.js"></script>
<script src="vendor/saucelabs-reporting.js"></script>
<script src="../dist/react-trigger-change.js"></script>
Expand All @@ -20,8 +20,8 @@

<script>
// Load React and ReactDOM based on query string.
var defaultReactPath = 'https://unpkg.com/react@15.5.4/dist/react.js';
var defaultReactDOMPath = 'https://unpkg.com/react-dom@15.5.4/dist/react-dom.js';
var defaultReactPath = 'https://unpkg.com/react@16.2.0/umd/react.production.min.js';
var defaultReactDOMPath = 'https://unpkg.com/react-dom@16.2.0/umd/react-dom.production.min.js';

var reactRes = /[?&]react=([^&]*)/.exec(location.search);
var reactPath = reactRes ? reactRes[1] : defaultReactPath;
Expand Down

0 comments on commit 9d2fe4a

Please sign in to comment.