We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
The following snippet gives me the following lint warning
Spy declared outside of before/after/it block
const setupMockComponents = () => { componentInstanceDatagrid = { id: "compId4", displayName: "Component four", typedef: "Datagrid", datasource: "some datasource", getId: jasmine.createSpy("getId").and.returnValue("compId4"), getDatabearer: jasmine.createSpy("getDatabearer").and.returnValue(datagridDatabearer), getTypedef: jasmine.createSpy("getTypedef").and.returnValue("Datagrid"), refreshComponent: () => {}, getBoundarySetting: jasmine.createSpy("getBoundarySetting").and.returnValue({}), updateBindings: jasmine.createSpy("updateBindings"), }; }; beforeEach(() => { setupMockComponents(); });
Should this be okay? or I shouldn't declare spies like so?
Context
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The following snippet gives me the following lint warning
Should this be okay? or I shouldn't declare spies like so?
Context
The text was updated successfully, but these errors were encountered: