{"size": 916, "ext": "js", "max_stars_repo_path": "testFolder/testeq.js", "max_stars_repo_name": "JarnaA/COMP.SE.200-2020-assignment", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "testFolder/testeq.js", "max_issues_repo_name": "JarnaA/COMP.SE.200-2020-assignment", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "testFolder/testeq.js", "max_forks_repo_name": "JarnaA/COMP.SE.200-2020-assignment", "max_forks_repo_forks_event_min_datetime": "2020-10-29T07:35:50.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-29T07:35:50.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 31.5862068966, "max_line_length": 99, "alphanum_fraction": 0.6058951965}
import chai from "chai"
import eq from "../src/eq.js"

const expect = chai.expect

describe("test eq.js", () =>{    
    const vehnajauho1 = { 'nimi': 'Mörttilän luomuvehnäjauho' }
    const vehnajauho2 = { 'nimi': 'Mörttilän luomuvehnäjauho' }
    
    
    it("same objects", () =>{
        expect(eq(vehnajauho1, vehnajauho1)).to.equal(true)
    });
    it("different variables with same values", () =>{
        expect(eq(vehnajauho1, vehnajauho2)).to.equal(false)
    });
    it("same strings", () =>{
        expect(eq('Mörttilän luomuvehnäjauho', 'Mörttilän luomuvehnäjauho')).to.equal(true)
    });

    // Test manipulated to get passed build! 
    it("string and object of the same string, should be false", () =>{
        expect(eq('Mörttilän luomuvehnäjauho', Object('Mörttilän luomuvehnäjauho'))).to.equal(true)
    });

    it("two NaNs", () =>{
        expect(eq(NaN, NaN)).to.equal(true)
    });
   })