Skip to content

Commit

Permalink
fix(core/kubernetes): clean up console noise in tests (spinnaker#7794)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored Jan 22, 2020
1 parent ddb1790 commit 05c93f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('PluginRegistry', () => {

it('should return a rejected promise if a loaded module doesnt contain an export named plugin', async () => {
loadModuleFromUrlSpy.and.callFake(fakePromise({}));
spyOn(console, 'error').and.stub();
const plugin1 = { name: 'foo', version: '1.0.0' };
pluginRegistry.register(plugin1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export class JsonEditor extends React.Component<IJsonEditorProps> {
}

public render() {
return <AceEditor {...this.props} ref={this.editorRef} onValidate={this.validate} />;
return (
<AceEditor
{...this.props}
ref={this.editorRef}
onValidate={this.validate}
editorProps={{ $blockScrolling: Infinity }}
/>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class JsonEditor extends React.Component<IJsonEditorProps> {
showLineNumbers: false,
showFoldWidgets: false,
}}
editorProps={{ $blockScrolling: Infinity }}
className="ace-editor"
/>
);
Expand Down

0 comments on commit 05c93f4

Please sign in to comment.