Skip to content

Commit

Permalink
Fixed test for #222
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Jan 4, 2024
1 parent e75908e commit 5b43fe8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"data.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', data, 2); });",
"data.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,data,2);});",
actualOut.toString())
}

Expand All @@ -153,7 +153,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"data.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', data, 2); });",
"data.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,data,2);});",
actualOut.toString())
}

Expand All @@ -170,7 +170,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"data.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', data, 3); });",
"data.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,data,3);});",
actualOut.toString())
}

Expand All @@ -187,7 +187,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"data.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', data, 4); });",
"data.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,data,4);});",
actualOut.toString())
}

Expand All @@ -208,7 +208,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"self.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', self, 2); });",
" self.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,self,2);});",
actualOut.toString())
}

Expand All @@ -226,7 +226,7 @@ class ModelJSTagLibSpec extends Specification implements TagLibUnitTest<ModelJST
then:

compareWithoutWhiteSpace(
"data.test = ko.computed(function() { return ecodata.forms.expressionEvaluator.evaluate('test1+1', data, 2); });"+
"data.test=ko.computed(function(){varexpression='test1+1';returnecodata.forms.expressionEvaluator.evaluate(expression,data,2);});"+
"data.test = data.test.extend({metadata:{metadata:self.dataModel['test'],context:self.\$context,config:config}});",
actualOut.toString())
}
Expand Down

0 comments on commit 5b43fe8

Please sign in to comment.