Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Fix how requiring apiCompatibilityChecks (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarckK authored and yurishkuro committed Oct 29, 2017
1 parent 95d73dd commit de1dc3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Implementations can subclass `opentracing.Trace`, `opentracing.Span`, and the ot
If `mocha` is being used for unit testing, `test/api_compatibility` can be used to test the custom tracer. The file exports a single function that expects as an argument a function that will return a new instance of the tracer.

```javascript
const { apiCompatibilityChecks } = require('opentracing/lib/test/api_compatibility.js');
const apiCompatibilityChecks = require('opentracing/lib/test/api_compatibility.js').default;
apiCompatibilityChecks(() => new CustomTracer());
```

Expand All @@ -149,4 +149,3 @@ An minimal example tracer is provided in the `src/mock_tracer` directory of the
[ci]: https://travis-ci.org/opentracing/opentracing-javascript
[cov]: https://coveralls.io/github/opentracing/opentracing-javascript?branch=master
[npm]: https://www.npmjs.com/package/opentracing

0 comments on commit de1dc3d

Please sign in to comment.