fac-13 / correl

A website that tracks symptoms and factors and shows correlations between them
https://correl-symptom-tracker.herokuapp.com/
3 stars 3 forks source link

Technical Spikes #9

Closed tspeed90 closed 6 years ago

tspeed90 commented 6 years ago

30 minutes on Mocha/Chai and creating a scale (d3?)

eadehemingway commented 6 years ago

https://www.w3schools.com/howto/howto_js_rangeslider.asp https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

tspeed90 commented 6 years ago

Mocha/Chai: https://hackmd.io/3U8LMOtSTEifnekvpYW_vQ Using Mocha with Supertest: http://willi.am/node-mocha-supertest/

A few example Mocha/Chai tests:

describe('mocha basics', () => {
  it('true should be true', () => {
    true.should.be.true;  
  });
  it('true should be true', () => {
    expect(true).to.be.true;
  })
})

describe('Math', () => {
  it('3*3 should equal 9', () => {
    assert.equal(9, 3*3);
  });
  it('(3-4)*8=-8', () => {
    assert.equal(-8, (3-4)*8);
  })
});
tspeed90 commented 6 years ago

Supertest docs: https://www.npmjs.com/package/supertest