来源:https://stackoverflow.com/questions/63604276/angularjs-unit-test-directive-how-can-i-pass-a-function-to-a-directive 标签 angularjs unit-testing karma-jasmine directive