typescript - Error in sinon when I try to stub getter again -


when try stub getter again, have error:

typeerror: cannot redefine property: cqlfilter     @ function.defineproperty (<anonymous>) 

this part of test code:

const layer = new layer(); const cqlfilterstub = sinon.stub(layer, "cqlfilter"); cqlfilterstub.get(() => "test"); // error occurs in line cqlfilterstub.get(() => null); 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -