I am getting a failed result in test cases which is caused by an await keyword not taking effect.
The warning i am getting is 'await' has no effect on the type of this expression.ts(80007)
and the code for that function which uses chai library is
describe("Add Task", function() {
it("Should emit AddTask Event", async () => {
let task = {
'taskText':"New task",
'isDeleted': false,
};
await expect(taskContract.addTask(task.taskText, task.isDeleted)
.to.emit(taskContract,"AddTask")
.withArgs(owner.address,total_tasks));
});
});`
I tried making the async function a normal function without arrow but it does'nt work.