<commit_before>var expect=require("chai").expect,
     sinon=require("sinon"),
     request=require("supertest"),
     app=require("../app.js"),
     address=request("http://localhost:8080"),
     categories = require("../models/category");
     var modelStub = sinon.stub(categories, 'find');

  describe.only("Topic Handler router", function(err){

       it('Getting /topicsHandler/categories get function from "Topics Handler"  through App.js', function(done){
        address
        .get('/topicsHandler/categories')
        .end(function(err,res) {
    		 expect(res.statusCode).to.be.equal(200);
    		 done();
    		});
        });

        describe('Describe Find items-------------------------------1', function(){
          beforeEach(function(){
          modelStub.withArgs({_id: "Hello"}).yields(null, {
            _id: "Hello",
          categoryName:"Big Hello",
          categoryTopics: [{_id: "Computers",
          topicName: "Coding",
          topicIcon: "facebook",
          topicCategory: ["Hello", "Hi", "How are you?"],
          topicDescription: "Hello, This is just a game we are into.",
          topicFollowers: 1212,
          playersPerMatch: 3,
          games:"Single"
}]});
            });

      it('Getting /category/:categoryId get function-------------2', function(done){
        address
         .get("/topicsHandler/category/Hello")
         .end(function(err,res){
         expect(res.statusCode).to.be.equal(200);
          // expect(res.body[0].categoryName).to.be.equal("Big Hello");
          
           done();
      });
    });
  });
});
<commit_msg>topicshandlertest<commit_after>var expect=require("chai").expect,
     sinon=require("sinon"),
     request=require("supertest"),
     app=require("../app.js"),
     address=request("http://localhost:8080"),
     categories = require("../models/category");
     var modelStub = sinon.stub(categories, 'find');

  describe.only("Topic Handler router", function(err){

       it('Getting /topicsHandler/categories get function from "Topics Handler"  through App.js', function(done){
        address
        .get('/topicsHandler/categories')
        .end(function(err,res) {
    		 expect(res.statusCode).to.be.equal(200);
    		 done();
    		});
        });

        describe('Describe Find items-------------------------------1', function(){
          beforeEach(function(){
          modelStub.withArgs({_id: "Hello"}).yields(null, {
            _id: "Hello",
          categoryName:"Big Hello",
          categoryTopics: [{_id: "Computers",
          topicName: "Coding",
          topicIcon: "facebook",
          topicCategory: ["Hello", "Hi", "How are you?"],
          topicDescription: "Hello, This is just a game we are into.",
          topicFollowers: 1212,
          playersPerMatch: 3,
          games:"Single"
}]});
            });

      it('Getting /category/:categoryId get function-------------2', function(done){
        address
         .get("/topicsHandler/category/Hello")
         .end(function(err,res){
         expect(res.statusCode).to.be.equal(200);
          // expect(res.body[0].categoryName).to.be.equal("Big Hello");

           done();
      });
    });
  });
});

{'fraction_non_alphanumeric': 0.186875, 'fraction_numerical': 0.01125, 'mean_word_length': 2.1850746268656716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5687207', 'n_tokens_mistral': 931, 'n_tokens_neox': 895, 'n_words': 164}