From 1b7d31ed287f98e54b3e47f131a901b75748232b Mon Sep 17 00:00:00 2001 From: Nina Kylstad Date: Mon, 7 Oct 2024 13:03:02 +0200 Subject: [PATCH 1/2] refactor: remove RuleHandler.js from template --- src/App/ui/form/RuleHandler.js | 63 ---------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/App/ui/form/RuleHandler.js diff --git a/src/App/ui/form/RuleHandler.js b/src/App/ui/form/RuleHandler.js deleted file mode 100644 index b0897079..00000000 --- a/src/App/ui/form/RuleHandler.js +++ /dev/null @@ -1,63 +0,0 @@ -var ruleHandlerObject = { - sum: function(obj) { - obj.a = obj.a ? +obj.a : 0; - obj.b = obj.b ? +obj.b : 0; - return obj.a + obj.b; - }, - - fullName: function(obj) { - return obj.first + ' ' + obj.last; - } -} -var ruleHandlerHelper = { - fullName: function() { - return { - first: "first name", - last: "last name" - }; - }, - - sum: function() { - return { - a: "a", - b: "b", - } - } -} - -var conditionalRuleHandlerObject = { - biggerThan10: function(obj) { - obj.number = +obj.number; - return obj.number > 10; - }, - - smallerThan10: function(obj) { - obj.number = +obj.number; - return obj.number < 10; - }, - - lengthBiggerThan4: function(obj) { - if (obj.value == null) return false; - return obj.value.length > 4; - } -} -var conditionalRuleHandlerHelper = { - biggerThan10: function() { - return { - number: "number" - }; - }, - - smallerThan10: function() { - return { - number: "number" - } - }, - - lengthBiggerThan4: function() { - return { - value: "value" - } - } - -} From 04037eb88837d1925c0499c09389432497258874 Mon Sep 17 00:00:00 2001 From: Nina Kylstad Date: Mon, 7 Oct 2024 14:27:47 +0200 Subject: [PATCH 2/2] update test workflow --- .github/workflows/dotnet-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 5fbbfe16..cfe4b090 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Build run: | - dotnet build src/AppRef.sln -v m + dotnet build src/App.sln -v m - name: Test run: | - dotnet test src/AppRef.sln -v m + dotnet test src/App.sln -v m