Skip to content

Commit 34986bb

Browse files
committed
Add plugintypeimpl script type tests
1 parent 1dc8810 commit 34986bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/rules/entry-points.js

+20
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,26 @@ ruleTester.run('entry-points', rule, {
8989
'});',
9090
].join('\n'),
9191
},
92+
{
93+
code: [
94+
'/**',
95+
' * @NScriptType plugintypeimpl',
96+
' */',
97+
'define([], function() {',
98+
' return {};',
99+
'});',
100+
].join('\n'),
101+
},
102+
{
103+
code: [
104+
'/**',
105+
' * @NScriptType plugintypeimpl',
106+
' */',
107+
'define([], function() {',
108+
' return { customFn: function() {} };',
109+
'});',
110+
].join('\n'),
111+
},
92112
],
93113

94114
invalid: [

0 commit comments

Comments
 (0)