Typeerror Cannot Read Property Of Undefined Jest Test