<commit_before>/** @jsx React.DOM */

/**
 * Disclaimer: Definitely not thorough enough
 */

var assert = require("assert");
var React = require('react');
var InputNumber = require("../input-number.jsx");

var TestUtils = React.addons.TestUtils;

var transform = InputNumber.transform;

describe("input-number", function() {
    it("'s transform should remove the `value` field", function() {
        var editorProps = {
            value: 5,
            simplify: "required",
            size: "normal",
            inexact: false,
            maxError: 0.1,
            answerType: "number"
        };
        var widgetProps = transform(editorProps);
        assert.strictEqual(_.has(widgetProps, "value"), false);
    });
});<commit_msg>remove apostrophe-s from test name<commit_after>/** @jsx React.DOM */

/**
 * Disclaimer: Definitely not thorough enough
 */

var assert = require("assert");
var React = require('react');
var InputNumber = require("../input-number.jsx");

var TestUtils = React.addons.TestUtils;

var transform = InputNumber.transform;

describe("input-number", function() {
    it("transform should remove the `value` field", function() {
        var editorProps = {
            value: 5,
            simplify: "required",
            size: "normal",
            inexact: false,
            maxError: 0.1,
            answerType: "number"
        };
        var widgetProps = transform(editorProps);
        assert.strictEqual(_.has(widgetProps, "value"), false);
    });
});
{'fraction_non_alphanumeric': 0.144, 'fraction_numerical': 0.004, 'mean_word_length': 2.616867469879518, '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': '4497746', 'n_tokens_mistral': 425, 'n_tokens_neox': 417, 'n_words': 109}