Skip to content

Commit

Permalink
Revert test checking default language selected
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir41 committed Aug 8, 2022
1 parent 7f9f872 commit bf28b9b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
import { findSdk } from '../../utils'
import { languages } from '../../test-data'
import { SdkLanguageSelector } from './SdkLanguageSelector'
import { defaultSettingsState } from '@looker/api-explorer'

const mockHistoryPush = jest.fn()
jest.mock('react-router-dom', () => {
Expand All @@ -56,7 +57,9 @@ describe('SdkLanguageSelector', () => {

test('it has the correct default language selected', async () => {
renderWithRouterAndReduxProvider(<SdkLanguageSelector />, undefined, store)
expect(screen.getByRole('textbox')).toHaveValue('Python')
expect(screen.getByRole('textbox')).toHaveValue(
defaultSettingsState.sdkLanguage
)
})

test('it lists all available languages and "All" as options', async () => {
Expand Down

0 comments on commit bf28b9b

Please sign in to comment.