update directive.spec.js