Skip to content

Josema/tabe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published