updated the sample.spec.js