index.js
var tasks=[];
tasks=[‘task one’, ‘task two’];
module.exports=tasks;
index.test.js
const tasks=require(‘./index.js’)
x=tasks.length;
test(‘cannot be negative’,(x)=>{
expect(x).not.toBe(x<0)
})
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
var tasks=[];
tasks=[‘task one’, ‘task two’];
module.exports=tasks;
const tasks=require(‘./index.js’)
x=tasks.length;
test(‘cannot be negative’,(x)=>{
expect(x).not.toBe(x<0)
})