<commit_before>import React from "react"
import { expect } from "chai"
import { shallow, render } from "enzyme"
import ConnectedCreateAlert, { CreateAlert } from "../../src/components/CreateAlert"
import { Router } from "react-router"

describe("CreateAlert component", () => {
    let alert = {messageVisible: false, messageStyle: "success", message: "Alert created!"}

    it("contains title", () => {
        const wrapper = shallow(<CreateAlert alert={alert}/>)
        expect(wrapper.find("h2").text()).to.equal("Create Alert")
    })

    it("contains alert label", () => {
        const wrapper = shallow(<CreateAlert alert={alert}/>)
        expect(wrapper.find("#alert-name").name()).to.equal("div")
    })

    it("contains alert criteria", () => {
        const wrapper = shallow(<CreateAlert alert={alert}/>)
        expect(wrapper.find("#alert-criteria").name()).to.equal("div")
    })

    it("contains alert threshold", () => {
        const wrapper = shallow(<CreateAlert alert={alert}/>)
        expect(wrapper.find("#alert-threshold").name()).to.equal("div")
    })

    it("contains cancel button", () => {
        const wrapper = shallow(<CreateAlert alert={alert}/>)
        var cancelButton = wrapper.find("#cancel-button")
        expect(cancelButton.name()).to.equal("button")
    })

})<commit_msg>2 tech // remove tests<commit_after>import React from "react"
import { expect } from "chai"
import { shallow, render } from "enzyme"
import ConnectedCreateAlert, { CreateAlert } from "../../src/components/CreateAlert"
import { Router } from "react-router"

describe("CreateAlert component", () => {
    // let alert = {messageVisible: false, messageStyle: "success", message: "Alert created!"}

    // it("contains title", () => {
    //     const wrapper = shallow(<CreateAlert alert={alert}/>)
    //     expect(wrapper.find("h2").text()).to.equal("Create Alert")
    // })
    //
    // it("contains alert label", () => {
    //     const wrapper = shallow(<CreateAlert alert={alert}/>)
    //     expect(wrapper.find("#alert-name").name()).to.equal("div")
    // })
    //
    // it("contains alert criteria", () => {
    //     const wrapper = shallow(<CreateAlert alert={alert}/>)
    //     expect(wrapper.find("#alert-criteria").name()).to.equal("div")
    // })
    //
    // it("contains alert threshold", () => {
    //     const wrapper = shallow(<CreateAlert alert={alert}/>)
    //     expect(wrapper.find("#alert-threshold").name()).to.equal("div")
    // })
    //
    // it("contains cancel button", () => {
    //     const wrapper = shallow(<CreateAlert alert={alert}/>)
    //     var cancelButton = wrapper.find("#cancel-button")
    //     expect(cancelButton.name()).to.equal("button")
    // })

})
{'fraction_non_alphanumeric': 0.1981785063752277, 'fraction_numerical': 0.001092896174863388, 'mean_word_length': 3.044182621502209, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 25, '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': '4806695', 'n_tokens_mistral': 790, 'n_tokens_neox': 769, 'n_words': 155}