I'm pretty sure every Leaf sold is still covered by a battery warranty. 8 years? I think that applies to all EV's.

Also, batteries don't typically fail entirely. It's usually a module or two within the entire system, and they can be replaced individually.