i'm trying to pass my unit test in flutter. i'm getting my expected value and actual value still my test got failed.
This is my Method in BaseApi class.
Exception getNetErrorException(String url) => HttpException(url);
and this is my test :
group("getNetErrorException", () {
test("Should throw a HttpException when there is an error", () {
BaseApi api = BaseApi();
expect(api.getNetErrorException(""), HttpException(""));
});
});