1.0.4 • Published 8 years ago

tabe v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

tabe

Beautiful tape tests for browsers and cli

Cli

cli

Browser

browser

Install

npm install -g tabe

Cli

tabe your_test.js

Browser

<!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>

Using the api

var test = require('tape');
var tabe = require('tabe');
tabe.createStream( test );

test('My first test', (t) => {
  t.equal(true, true);
  t.end();
});
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago