lightstep-tracer
Version:
> ❗ **This instrumentation is no longer recommended**. Please review [documentation on setting up and configuring the OpenTelemetry Node.js Launcher](https://github.com/lightstep/otel-launcher-node) or [OpenTelemetry JS (Browser)](https://github.com/open-
44 lines (42 loc) • 1.67 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>Unit tests</title>
<link rel="stylesheet" media="all" href="browser/mocha.css">
</head>
<body>
<div id="mocha"><p><a href=".">Index</a></p></div>
<div id="messages"></div>
<div id="fixtures"></div>
<script src="../node_modules/sinon/pkg/sinon.js"></script>
<script src="../node_modules/fetch-mock/es5/client-bundle.js"></script>
<script>
/*
* In order to mock requests they must be setup here before the tracer
* is loaded. This is because the request plugins grab fetch/xhr immediately
* so the mocks must be initialized before that happens. xhr requests are
* mocked by sinion which allows for custom responses inline. Fetch
* requests are mocked by fetchMock which requires initialization
* here.
*/
fetchMock
.get(/include-me-header-test/, 200)
.get(/exclude-me-header-test/, 200);
sinon.useFakeXMLHttpRequest();
</script>
<script src="dist/opentracing-browser.min.js"></script>
<script src="dist/lightstep-tracer.js"></script>
<script src="browser/underscore-min.js"></script>
<script src="browser/mocha.js"></script>
<script src="browser/chai.js"></script>
<script>
<!--
mocha.setup('bdd')
window.expect = chai.expect;
-->
</script>
<script src="dist/unittest_browser.bundle.js/main.js"></script>
<script>mocha.run();</script>
</body>
</html>