From 31bb85fab46943af0337e2e653ac87204036f9c2 Mon Sep 17 00:00:00 2001 From: Jaden Date: Fri, 22 Feb 2019 11:34:39 -0800 Subject: [PATCH] dont let user change algorithm api version --- conda/js/src/components/algorithm/AlgorithmEditor.jsx | 3 +-- conda/js/src/components/algorithm/AlgorithmEditor.spec.jsx | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/conda/js/src/components/algorithm/AlgorithmEditor.jsx b/conda/js/src/components/algorithm/AlgorithmEditor.jsx index 6afa695..0fc901e 100644 --- a/conda/js/src/components/algorithm/AlgorithmEditor.jsx +++ b/conda/js/src/components/algorithm/AlgorithmEditor.jsx @@ -581,14 +581,13 @@ export class AlgorithmEditor extends React.Component { this.changeContentsVal('api_version', e.target.value)} > diff --git a/conda/js/src/components/algorithm/AlgorithmEditor.spec.jsx b/conda/js/src/components/algorithm/AlgorithmEditor.spec.jsx index 0ccdaba..ff75d02 100644 --- a/conda/js/src/components/algorithm/AlgorithmEditor.spec.jsx +++ b/conda/js/src/components/algorithm/AlgorithmEditor.spec.jsx @@ -778,16 +778,13 @@ describe('', () => { ); wrapper.find('Input[type="select"]#schemaversion').prop('onChange')({ target: { value: 2.0 }}); - wrapper.find('Input[type="select"]#apiversion').prop('onChange')({ target: { value: 1.0 }}); wrapper.find('Input[type="select"]#algtype').prop('onChange')({ target: { value: 'autonomous' }}); expect(wrapper.props().data.contents.schema_version).to.equal(2.0); - expect(wrapper.props().data.contents.api_version).to.equal(1.0); expect(wrapper.props().data.contents.type).to.equal('autonomous'); expect(wrapper.props().data.contents).to.deep.equal({ ...aTestAlg.contents, schema_version: 2.0, - api_version: 1.0, type: 'autonomous', }); -- 2.21.0