fix web test failure

This commit is contained in:
zokutyou2@gmail.com 2021-06-26 09:41:19 +09:00
parent 05ce8500d1
commit 22e5989783
2 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,40 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CommandBar Component should render correctly 1`] = `
Array [
<div
className="command"
>
Command Result
</div>,
<div
className="command-result"
/>,
<div
className="command-suggestion"
>
Argument suggestion:
</div>,
<div
className="command-input input-group"
>
<span
className="input-group-addon"
>
<i
className="fa fa-fw fa-terminal"
/>
</span>
<input
className="form-control"
onChange={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
placeholder="Enter command"
type="text"
value=""
/>
</div>,
]
`;

View File

@ -1,6 +1,6 @@
import React, { useState, useEffect, Component } from 'react'
import classnames from 'classnames'
import { Key, fetchApi } from '../utils.js'
import { Key, fetchApi } from '../utils'
import Filt from '../filt/command'
export default function CommandBar() {