get tests passing in the browser
This commit is contained in:
29
packages/nostr/test/browser/index.html
Normal file
29
packages/nostr/test/browser/index.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Tests</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
|
||||
<script src="https://unpkg.com/mocha/mocha.js"></script>
|
||||
|
||||
<script class="mocha-init">
|
||||
mocha.setup({
|
||||
ui: "bdd",
|
||||
timeout: "5s",
|
||||
})
|
||||
mocha.checkLeaks()
|
||||
</script>
|
||||
|
||||
<!-- The server replaces the following line with <script> tags for all tests. -->
|
||||
<!-- TESTS -->
|
||||
|
||||
<script class="mocha-exec">
|
||||
mocha.run()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user