<commit_before>var request = require('request');
var assert = require('assert');
var helpers = require('../../../lib/test_helpers.js');

describe('price', function() {
    // The only thing that changes is the form attribute, so why not just re-use the object
    var productFields = ["name", "unit", "units", "Group", "GroupDescription", "price_per_unit", "sales_units", "price_total", "discount"];

    it("should return a single object containing correct fields", function(done) {
        var params = helpers.testRequestParams("/price/kronan?barcode=5690527190008");
        var resultHandler = helpers.testRequestHandlerForFields(done, productFields);
        request(params, resultHandler);
    });

});<commit_msg>Increased timeout for price<commit_after>var request = require('request');
var assert = require('assert');
var helpers = require('../../../lib/test_helpers.js');

describe('price', function() {
    // The only thing that changes is the form attribute, so why not just re-use the object
    var productFields = ["name", "unit", "units", "Group", "GroupDescription", "price_per_unit", "sales_units", "price_total", "discount"];
    this.timeout(4000);

    it("should return a single object containing correct fields", function(done) {
        var params = helpers.testRequestParams("/price/kronan?barcode=5690527190008");
        var resultHandler = helpers.testRequestHandlerForFields(done, productFields);
        request(params, resultHandler);
    });

});
{'fraction_non_alphanumeric': 0.1472972972972973, 'fraction_numerical': 0.02027027027027027, 'mean_word_length': 4.609848484848484, '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': '6258907', 'n_tokens_mistral': 427, 'n_tokens_neox': 404, 'n_words': 116}