Skip to content
代码片段 群组 项目
提交 34c5f63b 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Update helper api baseline and enhance the test against undeprecated functions.

上级 19d601c2
No related branches found
No related tags found
无相关合并请求
......@@ -50,6 +50,7 @@
{ "name": "endpoint_attribute_count" },
{ "name": "endpoint_attribute_list" },
{ "name": "endpoint_attribute_long_defaults" },
{ "name": "endpoint_attribute_long_defaults_count" },
{ "name": "endpoint_attribute_manufacturer_code_count" },
{ "name": "endpoint_attribute_manufacturer_codes" },
{ "name": "endpoint_attribute_min_max_count" },
......
......@@ -52,6 +52,10 @@ test('compare APIs against the baseline', () => {
if (apiFn == undefined) {
errorMessage += `Helper ${fn} has been removed, breaking the API.\n`
}
if (api.isDeprecated) {
if (!apiFn.isDeprecated)
errorMessage += `Helper ${fn} has been deprecated, but now it's not any more.\n`
}
})
expect(errorMessage).toEqual('')
})
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册