From 6e3ff4e074988a244fa29164c8560bfd81172f7c Mon Sep 17 00:00:00 2001 From: Sanjeet Uppal Date: Mon, 18 Sep 2017 15:28:30 -0700 Subject: [PATCH] resolve cli issues --- packages/api-explorer-ui/__tests__/index.test.jsx | 3 +++ packages/api-explorer-ui/src/Doc.jsx | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/api-explorer-ui/__tests__/index.test.jsx b/packages/api-explorer-ui/__tests__/index.test.jsx index d67b9f02c..1238a1ae7 100644 --- a/packages/api-explorer-ui/__tests__/index.test.jsx +++ b/packages/api-explorer-ui/__tests__/index.test.jsx @@ -70,6 +70,7 @@ describe('selected language', () => { [extensions.SAMPLES_LANGUAGES]: languages, }), }} + cookie={languageCookie} />, ); @@ -88,6 +89,7 @@ describe('selected language', () => { [extensions.SAMPLES_LANGUAGES]: languages, }), }} + cookie={languageCookie} />, ); @@ -102,6 +104,7 @@ describe('selected language', () => { oasFiles={{ 'api-setting': Object.assign({}, oas), }} + cookie={languageCookie} />, ); diff --git a/packages/api-explorer-ui/src/Doc.jsx b/packages/api-explorer-ui/src/Doc.jsx index a631c5f52..9d1eb39d8 100644 --- a/packages/api-explorer-ui/src/Doc.jsx +++ b/packages/api-explorer-ui/src/Doc.jsx @@ -136,11 +136,6 @@ Doc.propTypes = { }).isRequired, oas: PropTypes.shape({}), setLanguage: PropTypes.func.isRequired, - language: PropTypes.string, -}; - -Doc.defaultProps = { - language: 'curl', }; Doc.defaultProps = {