From 34986bb466b572bac19f09d6f46aa9360d51ed51 Mon Sep 17 00:00:00 2001 From: Adam Davies Date: Fri, 31 May 2024 18:05:36 -0500 Subject: [PATCH] Add plugintypeimpl script type tests --- tests/rules/entry-points.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/rules/entry-points.js b/tests/rules/entry-points.js index 8d6673d..40e3e44 100644 --- a/tests/rules/entry-points.js +++ b/tests/rules/entry-points.js @@ -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: [