I have a code test like this, the expected and the actual already have the same object, but the unit test still fails, what should I do?
blocTest("_mapClickEmailToState",
wait: const Duration(milliseconds: 500),
build: () {
return bloc;
},
act: (bloc) => bloc.add(ClickEmail()),
expect: () => [
ClickEmailSuccess()
]);
});
i have this error
Expected: [Instance of 'ClickEmailSuccess'] Actual: [Instance of 'ClickEmailSuccess'] Which: at location [0] is <Instance of 'ClickEmailSuccess'> instead of <Instance of 'ClickEmailSuccess'>