Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ describe('AddLibrary', () => {
expect(render(<AddLibrary {...mockedProps} />)).toBeTruthy()
})

it('should display proper code value by default', () => {
render(<AddLibrary {...mockedProps} />)

expect(screen.getByTestId('code-value')).toHaveValue('#!js name=LibName api_version=1.0')
})

it('should call proper telemetry event', async () => {
const onAdded = jest.fn()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const LibraryDetails = (props: IProps) => {

const { loading } = useSelector(triggeredFunctionsAddLibrarySelector)

const [code, setCode] = useState<string>('')
const [code, setCode] = useState<string>('#!js name=LibName api_version=1.0')
const [configuration, setConfiguration] = useState<string>('')
const [isShowConfiguration, setIsShowConfiguration] = useState<boolean>(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
height: 100%;
max-height: calc(100% - 104px);
margin-bottom: 46px;

overflow-x: hidden;
}

.label {
Expand Down