Skip to content

oumarkonate/unit-tests-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALERTS-JS

Javascript alerts notifications using JAVASCRIPT/ES6, CHAI, JSDOM, MOCHA, SINON

Requirement

Use a node environment

Installation

  • First, clone this repository:
git clone https://github.com/oumarkonate/alerts-js.git
  • Next, install npm dependencies:
npm install
  • Next, load the css file css/style.styl The file is in stylus format, you can convert it to css if necessary.

  • Next, import the file js/notification.js :

const Notification = require('path_to_notification/notification');

And Instantiate the Notification class in your javascript index file:

new Notification();

Units tests

  • Run units tests by running command:
npm test

About

Javascript alerts notifications using JAVASCRIPT/ES6, CHAI, JSDOM, MOCHA, SINON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published