Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Last active August 29, 2015 14:10
Show Gist options
  • Save brianleroux/59ff417cd5aa0a6a7635 to your computer and use it in GitHub Desktop.
Save brianleroux/59ff417cd5aa0a6a7635 to your computer and use it in GitHub Desktop.
import test from 'tape'
import echo from '../'
import report from 'browserify-tape-spec'
test('exists', (t) => {
t.ok(test, 'test lib correctly imported')
t.end()
})
test('echo exists', (t) => {
t.ok(echo, 'echo lib correctly imported')
t.end()
})
test('can echo', (t) => {
let str = 'hello world'
t.equal(str, echo(str), 'echoed')
t.end()
})
if (process.browser) test.createStream().pipe(report('out'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment