Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_22812535
incubator-superset
提交
22d52ead
I
incubator-superset
项目概览
qq_22812535
/
incubator-superset
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-superset
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
22d52ead
编写于
1月 26, 2021
作者:
M
Michael S. Molina
提交者:
GitHub
1月 25, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix tests errors and warnings - iteration 5 (#12212) (#12224)
上级
20503f92
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
17 addition
and
5 deletion
+17
-5
superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx
...tend/spec/javascripts/datasource/DatasourceModal_spec.jsx
+2
-0
superset-frontend/spec/javascripts/explore/components/AdhocMetricEditPopover_spec.jsx
...cripts/explore/components/AdhocMetricEditPopover_spec.jsx
+1
-1
superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx
...avascripts/explore/components/ColorPickerControl_spec.jsx
+1
-1
superset-frontend/spec/javascripts/explore/components/DatasourcePanel_spec.jsx
...c/javascripts/explore/components/DatasourcePanel_spec.jsx
+1
-1
superset-frontend/spec/javascripts/explore/components/ExploreChartHeader_spec.jsx
...avascripts/explore/components/ExploreChartHeader_spec.jsx
+2
-0
superset-frontend/spec/javascripts/explore/components/MetricDefinitionOption_spec.jsx
...cripts/explore/components/MetricDefinitionOption_spec.jsx
+3
-1
superset-frontend/spec/javascripts/explore/components/MetricDefinitionValue_spec.jsx
...scripts/explore/components/MetricDefinitionValue_spec.jsx
+6
-1
superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx
superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx
+1
-0
未找到文件。
superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -39,6 +39,7 @@ const datasource = mockDatasource['7__table'];
const
SAVE_ENDPOINT
=
'
glob:*/api/v1/dataset/7
'
;
const
SAVE_PAYLOAD
=
{
new
:
'
data
'
};
const
SAVE_DATASOURCE_ENDPOINT
=
'
glob:*/datasource/save/
'
;
const
mockedProps
=
{
datasource
,
...
...
@@ -94,6 +95,7 @@ describe('DatasourceModal', () => {
it
(
'
saves on confirm
'
,
async
()
=>
{
const
callsP
=
fetchMock
.
post
(
SAVE_ENDPOINT
,
SAVE_PAYLOAD
);
fetchMock
.
post
(
SAVE_DATASOURCE_ENDPOINT
,
{});
act
(()
=>
{
wrapper
.
find
(
'
button[data-test="datasource-modal-save"]
'
)
...
...
superset-frontend/spec/javascripts/explore/components/AdhocMetricEditPopover_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -51,7 +51,7 @@ function setup(overrides) {
const
onClose
=
sinon
.
spy
();
const
props
=
{
adhocMetric
:
sumValueAdhocMetric
,
savedMetric
:
{},
savedMetric
:
{
metric_name
:
'
foo
'
,
expression
:
'
COUNT(*)
'
},
savedMetrics
:
[],
onChange
,
onClose
,
...
...
superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -34,7 +34,7 @@ const defaultProps = {
describe
(
'
ColorPickerControl
'
,
()
=>
{
let
wrapper
;
let
inst
;
before
Each
(()
=>
{
before
All
(()
=>
{
getCategoricalSchemeRegistry
()
.
registerValue
(
'
test
'
,
...
...
superset-frontend/spec/javascripts/explore/components/DatasourcePanel_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -45,7 +45,7 @@ describe('datasourcepanel', () => {
datasource
,
},
},
actions
:
null
,
actions
:
{}
,
};
it
(
'
should render
'
,
()
=>
{
const
{
container
}
=
render
(
...
...
superset-frontend/spec/javascripts/explore/components/ExploreChartHeader_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -44,8 +44,10 @@ const mockProps = {
},
timeout
:
1000
,
chart
:
{
id
:
0
,
queryResponse
:
{},
},
chartHeight
:
'
30px
'
,
};
describe
(
'
ExploreChartHeader
'
,
()
=>
{
...
...
superset-frontend/spec/javascripts/explore/components/MetricDefinitionOption_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -33,7 +33,9 @@ describe('MetricDefinitionOption', () => {
}
it
(
'
renders a MetricOption given a saved metric
'
,
()
=>
{
const
wrapper
=
setup
({
option
:
{
metric_name
:
'
a_saved_metric
'
}
});
const
wrapper
=
setup
({
option
:
{
metric_name
:
'
a_saved_metric
'
,
expression
:
'
COUNT(*)
'
},
});
expect
(
wrapper
.
find
(
MetricOption
)).
toExist
();
});
...
...
superset-frontend/spec/javascripts/explore/components/MetricDefinitionValue_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -33,7 +33,11 @@ const sumValueAdhocMetric = new AdhocMetric({
describe
(
'
MetricDefinitionValue
'
,
()
=>
{
it
(
'
renders a MetricOption given a saved metric
'
,
()
=>
{
const
wrapper
=
shallow
(
<
MetricDefinitionValue
option
=
{
{
metric_name
:
'
a_saved_metric
'
}
}
/>,
<
MetricDefinitionValue
onMetricEdit
=
{
()
=>
{}
}
option
=
{
{
metric_name
:
'
a_saved_metric
'
,
expression
:
'
COUNT(*)
'
}
}
index
=
{
1
}
/>,
);
expect
(
wrapper
.
find
(
'
AdhocMetricOption
'
)).
toExist
();
});
...
...
@@ -43,6 +47,7 @@ describe('MetricDefinitionValue', () => {
<
MetricDefinitionValue
onMetricEdit
=
{
()
=>
{}
}
option
=
{
sumValueAdhocMetric
}
index
=
{
1
}
/>,
);
expect
(
wrapper
.
find
(
AdhocMetricOption
)).
toExist
();
...
...
superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx
浏览文件 @
22d52ead
...
...
@@ -55,6 +55,7 @@ describe('SqlEditor', () => {
dataPreviewQueries
:
[],
defaultQueryLimit
:
1000
,
maxRow
:
100000
,
displayLimit
:
100
,
};
const
buildWrapper
=
(
props
=
{})
=>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录