Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.mz
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ We also care about code coverage so we'll use [nyc][8] to generate a coverage
report.

```bash bash -eo pipefail
# Install and prune dependencies
{ npm i && npm prune; } &> /dev/null
# Clearn install dependencies.
npm ci &> /dev/null

# Run tests and generate a coverage report
npx nyc npm t | npx tap-nyc
Expand Down
14 changes: 14 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { test } = require('tape')
const { isNil } = require('./helpers')
const { check, gen } = require('tape-check')
const { version } = require('../package')
const {
reference,
instanceOf,
Expand Down Expand Up @@ -166,3 +168,15 @@ test('Deprecated functions', ts => {
console.error = consoleError
ts.end()
})

if (version.startsWith('2')) {

test('Deprecated functions in version 2', t => {
t.plan(3)
t.ok(isNil(require('./index').typed))
t.ok(isNil(require('./index').t))
t.ok(isNil(require('./index').ref))
})

}