<commit_before>var request = require('supertest');
    app = require('../app.js');
    assert = require('assert'); 

describe('/GET /', function(){
	it('should render page with external api',function(done){
		request(app)
		.get('/')
		.expect(200);
		done();
	});
});

describe('/Redirect', function(){
	it('should redirect',function(done){
		request(app)
		.get('/newport-news')
		.expect(302, done)

	});
});


describe('render html',function(){
	it('should render some html ', function(done){
	request(app)
    	.get('/')
    	.end(function(err, result) {
        	assert(result.text.indexOf("</html>") > 0)//statusCode, 200);
        done();
    });
		
	})
})<commit_msg>Changed the tests<commit_after>var request = require('supertest');
    app = require('../app.js');
    assert = require('assert'); 

describe('GET index', function(){
	it('should render page with external api',function(done){
		request(app)
		.get('/')
		.expect(200);
		done();
	});
});

describe('Page redirect', function(){
	it('should redirect to newport-news/:id',function(done){
		request(app)
		.get('/newport-news')
		.expect(302, done)

	});
});

describe('render html',function(){
	it('should render some html ', function(done){
	request(app)
    	.get('/')
    	.end(function(err, result) {
        assert(result.text.indexOf("</html>") > 0)
        done();
    	});
	})
})

{'fraction_non_alphanumeric': 0.21822189566495223, 'fraction_numerical': 0.012490815576781777, 'mean_word_length': 3.6804123711340204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2918685', 'n_tokens_mistral': 485, 'n_tokens_neox': 447, 'n_words': 89}