Skip to content

Commit

Permalink
Add plugintypeimpl script type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvs committed May 31, 2024
1 parent 1dc8810 commit 34986bb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/rules/entry-points.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,26 @@ ruleTester.run('entry-points', rule, {
'});',
].join('\n'),
},
{
code: [
'/**',
' * @NScriptType plugintypeimpl',
' */',
'define([], function() {',
' return {};',
'});',
].join('\n'),
},
{
code: [
'/**',
' * @NScriptType plugintypeimpl',
' */',
'define([], function() {',
' return { customFn: function() {} };',
'});',
].join('\n'),
},
],

invalid: [
Expand Down

0 comments on commit 34986bb

Please sign in to comment.