mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tests: migrated tests for link_srv to jest, #9666
This commit is contained in:
17
public/test/mocks/angular.ts
Normal file
17
public/test/mocks/angular.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export default class AngularJSMock {
|
||||
service: any;
|
||||
controller: any;
|
||||
directive: any;
|
||||
|
||||
constructor() {
|
||||
this.service = jest.fn();
|
||||
this.controller = jest.fn();
|
||||
this.directive = jest.fn();
|
||||
}
|
||||
|
||||
module() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AngularJSMock;
|
||||
Reference in New Issue
Block a user