Chai expect for undefined is not passing linter