From 95ee8d30323225262e7821ca673cb2f21f25b3ed Mon Sep 17 00:00:00 2001 From: jfgreffier Date: Fri, 3 Sep 2021 16:11:00 +0200 Subject: [PATCH] Add unit test reproducing #449 --- test/function-type.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/function-type.js b/test/function-type.js index 360f2c19..c189ea08 100644 --- a/test/function-type.js +++ b/test/function-type.js @@ -16,6 +16,12 @@ var invalid = []; valid.push({ code: '_.filter(vm.global, function (n) { return n % 2 === 0; })', options: ['anonymous'] +}, { + code: '_.filter(vm.global, function (n) { return n % 2 === 0; })', + options: ['named'] +}, { + code: '_.filter(local, function (n) { return n % 2 === 0; })', + options: ['named'] }, { code: 'angular.module("mymodule.constants", []).constant("EMPTY", [])', options: ['anonymous']