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

Commit

Permalink
Fix typo in compatibility snippet (#81)
Browse files Browse the repository at this point in the history
* Fix typo in compatibility snippet
* Fix import to named import in example snippet
  • Loading branch information
DanielMSchmidt authored and yurishkuro committed Apr 26, 2017
1 parent 131d8a2 commit d7c443c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ 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');
apiCompatibilityCheck(() => new CustomTracer());
const { apiCompatibilityChecks } = require('opentracing/lib/test/api_compatibility.js');
apiCompatibilityChecks(() => new CustomTracer());
```

### MockTracer
Expand Down

0 comments on commit d7c443c

Please sign in to comment.