Fix chai deprecation warning

#1549 missed one