<commit_before>/*jslint node: true */

var frisby = require('frisby');

var REST_URL = 'http://localhost:3000/rest/admin';

frisby.create('GET application version from package.json')
    .get(REST_URL + "/application-version")
    .expectStatus(200)
    .expectHeaderContains('content-type', 'application/json')
    .expectJSON({
        version: '0.3.0'
    })
    .toss();<commit_msg>fixed version test<commit_after>/*jslint node: true */

var frisby = require('frisby'),
    utils = require('../../lib/utils');

var REST_URL = 'http://localhost:3000/rest/admin';

frisby.create('GET application version from package.json')
    .get(REST_URL + "/application-version")
    .expectStatus(200)
    .expectHeaderContains('content-type', 'application/json')
    .expectJSON({
        version: utils.version()
    })
    .toss();
{'fraction_non_alphanumeric': 0.17212121212121212, 'fraction_numerical': 0.020606060606060607, 'mean_word_length': 3.640449438202247, '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': '4652688', 'n_tokens_mistral': 279, 'n_tokens_neox': 265, 'n_words': 49}