You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm weighing the pros and cons of replacing mocha and chai with flug.
Although they are popular, dependabot occasionally flags security vulnerabilities with these libraries and I'd rather not bother with the hassle if there is an alternative. Additionally, I prefer the simpler syntax of flug.
with mocha + cai
constshould=require('chai').should();// eslint-disable-line no-unused-varsdescribe('third mgrs set',()=>{constmgrsStr='11SPA7234911844';constpoint=[-115.0820944,36.2361322];it('MGRS reference with highest accuracy correct.',()=>{mgrs.forward(point).should.equal(mgrsStr);});it('MGRS reference with 0-digit accuracy correct.',()=>{mgrs.forward(point,0).should.equal('11SPA');});});
with flug
test('third mgrs set',({ eq })=>{constmgrsStr='11SPA7234911844';constpoint=[-115.0820944,36.2361322];eq(mgrs.forward(point),mgrsStr);// with highest accuracyeq(mgrs.forward(point,0),'11SPA');// with 0-digit accuracy});
Open to your thoughts and opinions!
The text was updated successfully, but these errors were encountered:
I'm weighing the pros and cons of replacing mocha and chai with flug.
Although they are popular, dependabot occasionally flags security vulnerabilities with these libraries and I'd rather not bother with the hassle if there is an alternative. Additionally, I prefer the simpler syntax of flug.
with mocha + cai
with flug
Open to your thoughts and opinions!
The text was updated successfully, but these errors were encountered: