Skip to content

AFrancani/testing-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing-lib

This lib is a minimal testing lib which has been developed as an exercice. It has been developed in a TDD fashion, using the lib itself to test its new features.

Installation

npm install

Run the tests

npm test

Test your own features

require('./testing-lib.js');

// import your code
const MyAwesomeFeature = require(...);

describe('my awesome feature', function() {

	var myAwesomeFeature;

	// gets run before each test
	beforeEach(function() {
		myAwesomeFeature = new MyAwesomeFeature();
	});

	// creates a test
	testThat('it should be awesome', function() {
		assertThat(myAwesomeFeature.isAwesome(), isTrue);
	});
});

About

Self tested testing lib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published