Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Beautiful tape tests for browsers and cli

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages