Beautiful tape tests for browsers and cli
npm install -g tabe
tabe your_test.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tabe browser test</title>
</head>
<body>
<script src="../dist/tabe.js"></script>
<script type="text/javascript">
window.tabe.createStream( window.tape );
window.test = window.tape; // Just an alias
</script>
<script>
test('My first test', (t) => {
t.equal(true, true);
t.end();
});
</script>
</body>
</html>
var test = require('tape');
var tabe = require('tabe');
tabe.createStream( test );
test('My first test', (t) => {
t.equal(true, true);
t.end();
});