Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 717 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 717 Bytes

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