You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-27 23:28:38 +02:00
Tools: Various improvements on plugin-repo-cli
This commit is contained in:
@ -4,11 +4,12 @@ describe('validatePluginId', () => {
|
||||
|
||||
test('should validate an ID', () => {
|
||||
const okCases = [
|
||||
'thatsok',
|
||||
'that-s-ok',
|
||||
'that_s_fine12',
|
||||
'com.ok.too',
|
||||
'Good',
|
||||
'joplinapp.org.plugins.thatsok',
|
||||
'joplinapp.org.plugins.that-s-ok',
|
||||
'joplinapp.org.plugins.that_s_fine12',
|
||||
'joplinapp.org.plugins.com.ok.too',
|
||||
'joplinapp.org.plugins.Good',
|
||||
'outline',
|
||||
];
|
||||
|
||||
const errorCases = [
|
||||
@ -16,8 +17,9 @@ describe('validatePluginId', () => {
|
||||
'verylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongidverylongid',
|
||||
'-shouldstartwiththis',
|
||||
'shouldntendwithit.',
|
||||
' no space ',
|
||||
'no space',
|
||||
' no space no space no space no space ',
|
||||
'no spaceno spaceno spaceno spaceno space',
|
||||
'tooshort',
|
||||
];
|
||||
|
||||
for (const t of okCases) {
|
||||
|
Reference in New Issue
Block a user