Neurological Phenomenon Multiplexer
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

ui-tester

1.2.2 • Public • Published

tester

A simple web unit tester

Usage

Put this code to your testing HTML files.

Tester.feedback( true || false );

e.g.

<!-- test-plus.html -->
<script src="bower_components/tester/tester.js"></script>
<script>
var plus = function(a ,b) {
  return a + b;
};
 
Tester.feedback(plus(1, 2) === 3);
</script> 

Use Tester.run to execute your testing HTML files in a summary file.

<!-- test.html -->
<script src="bower_components/tester/tester.js"></script>
<script>
Tester.run('test-plus.html');
</script> 

Keywords

none

install

npm i ui-tester

Downloadsweekly downloads

49

version

1.2.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability