Update basics_spec.js

Passed error callback object as a parameter.