/**
 * This file is dependent on gulp which automate tasks.
 * Author : # Collins
 */
const gulp = require("gulp"),
    less = require("gulp-less"),
    livereload = require("gulp-livereload"),
    cleanCSS = require("gulp-clean-css"),
    jshint = require("gulp-jshint");
const browserSync1 = require("browser-sync").create();
const browserSync2 = require("browser-sync").create();
const browserSync = require("browser-sync").create();
gulp.task("default", ["front","test"]);
gulp.task("css", () => {
  gulp.src("public/design/css/*.css")
    .pipe(cleanCSS())
    .pipe(gulp.dest("css"))
    .pipe(livereload(".public/index.html"));
}); 
gulp.task("watch", () => {
  livereload.listen();
  gulp.watch("public/design/css/*.css", ["css"]);
});
// A task that ensures the javascript task is complete before reloading browsers
gulp.task("js-watch", ["js"],  (done) => {
    browserSync.reload();
    done();
});
gulp.task("front",  () => {
    browserSync1.init({
        server : {
            baseDir: "./public"
        },
        port : 3002,
        ui: {
            port:3070
        }
    });
    // Tracks html,js and css changes.I have used to allow reload
    gulp.watch("./public/**/*.{html,js,css}").on("change", browserSync1.reload);
});
gulp.task("test",  () => {
    browserSync2.init({
        server: {
            baseDir: ["./public/src/", "./jasmine"]},
        port: 3080,
        ui: {
            port: 3090
        }
    });
    gulp.watch("./jasmine/spec/*.js").on("change",browserSync2.reload);
    gulp.watch("./public/src/*.js").on("change", browserSync2.reload);
}); 
@@ -225,24 +225,63 @@
 lean-css%22),%0A
+    jasmine = require(%22gulp-jasmine%22),%0A
     jshint =
@@ -504,16 +504,17 @@
 t%22,%22test
+1
 %22%5D);%0Agul
@@ -1298,16 +1298,17 @@
 sk(%22test
+1
 %22,  () =
@@ -1625,12 +1625,120 @@
 eload);%0A%7D); 
+%0A%0Agulp.task(%22test%22 , () =%3E %7B%0A    gulp.src(%22./jasmine/spec/inverted-index-test.js%22)%0A    .pipe(jasmine());%0A%7D);

add jasmine test