<commit_before>var request = require("supertest");
var assert = require('assert');
var app = require("../app");
var HTTPStatus = require('http-status');
var dbschema = require('../models/dbschema.js');

describe('Requests to /builds', function () {
    it('should return 201 with json', function (done) {

        var testBuild = {
            "application": "applicationtest",
            "gitRepo": "<EMAIL>/test",
            "gitSHA": "1111abcd1234",
            "gitBranch": "master",
            "dockerDigest": "sha256:12345678"
        };

        request(app)
            .post('/builds')
            .send(testBuild)
            .expect('Content-Type', /application\/json/)
            .expect(HTTPStatus.CREATED)
            .end(function (error, response) {
                if (error) throw error;
                assert.equal(response.body.application, "applicationtest")
                done();
            });
    });
});<commit_msg>fix assert for builds post<commit_after>var request = require("supertest");
var assert = require('assert');
var app = require("../app");
var HTTPStatus = require('http-status');
var dbschema = require('../models/dbschema.js');

describe('Requests to /builds', function () {
    it('should return 201 with json', function (done) {

        var testBuild = {
            "application": "applicationtest",
            "gitRepo": "<EMAIL>/test",
            "gitSHA": "1111abcd1234",
            "gitBranch": "master",
            "dockerDigest": "sha256:12345678"
        };

        request(app)
            .post('/builds')
            .send(testBuild)
            .expect('Content-Type', /application\/json/)
            .expect(HTTPStatus.CREATED)
            .end(function (error, response) {
                if (error) throw error;
                assert.equal(response.body.gitRepo, "git<EMAIL>/test")
                done();
            });
    });
});
{'fraction_non_alphanumeric': 0.15800524934383203, 'fraction_numerical': 0.023097112860892388, 'mean_word_length': 2.0544871794871793, 'pattern_counts': {'":': 10, '<': 6, '<?xml version=': 0, '>': 6, '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': '3046238', 'n_tokens_mistral': 560, 'n_tokens_neox': 514, 'n_words': 112}