Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 902 Bytes

README.md

File metadata and controls

50 lines (43 loc) · 902 Bytes

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();
});