Fix chai deprecation warning
Merge pull request #1551 from seegno/hotfix/deprecation-warning

Fix chai deprecation warning