Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/bundlers/webpack/index.html')
-rw-r--r--test/bundlers/webpack/index.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/bundlers/webpack/index.html b/test/bundlers/webpack/index.html
new file mode 100644
index 0000000..e9b2d63
--- /dev/null
+++ b/test/bundlers/webpack/index.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<head>
+ <link rel="stylesheet" href="../../../node_modules/mocha/mocha.css" />
+ <script src="../../../node_modules/mocha/mocha.js" type="text/javascript"></script>
+ <script src="bundle.js" type="text/javascript"></script>
+</head>
+<body>
+ <script type="text/javascript">
+ window.onload = function () {
+ console.log("These tests will only work in all browsers with the console open");
+ mocha.setup({
+ ui: 'bdd',
+ globals: [ 'someGlobalVar' ]
+ });
+ enableTests();
+ mocha.run();
+ };
+ </script>
+ <div id="mocha"></div>
+</body> \ No newline at end of file