Javascript alerts notifications using JAVASCRIPT/ES6, CHAI, JSDOM, MOCHA, SINON
Use a node environment
- 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();
- Run units tests by running command:
npm test