|
|
@ -25,18 +25,20 @@ describe('parsePluginManifest', () => {
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'not allow additional properties',
|
|
|
|
'allow i18n properties',
|
|
|
|
JSON.stringify({
|
|
|
|
JSON.stringify({
|
|
|
|
label: '网页面板插件',
|
|
|
|
label: 'webpanel',
|
|
|
|
|
|
|
|
'label.zh-CN': '网页面板插件',
|
|
|
|
name: 'com.msgbyte.webview',
|
|
|
|
name: 'com.msgbyte.webview',
|
|
|
|
url: '/plugins/com.msgbyte.webview/index.js',
|
|
|
|
url: '/plugins/com.msgbyte.webview/index.js',
|
|
|
|
version: '0.0.0',
|
|
|
|
version: '0.0.0',
|
|
|
|
author: 'msgbyte',
|
|
|
|
author: 'msgbyte',
|
|
|
|
description: '为群组提供创建网页面板的功能',
|
|
|
|
description: 'Provide groups with the ability to create web panels',
|
|
|
|
|
|
|
|
'description.zh-CN': '为群组提供创建网页面板的功能',
|
|
|
|
requireRestart: false,
|
|
|
|
requireRestart: false,
|
|
|
|
foo: 'bar',
|
|
|
|
foo: 'bar',
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
false,
|
|
|
|
true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'missed properties',
|
|
|
|
'missed properties',
|
|
|
|