Use chai to validate your method's parameters