Skip to content

Commit

Permalink
feat(expression-languages): set FEEL as default expression language
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Mar 18, 2020
1 parent 79acba9 commit ed256c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<outputEntry id="outputEntry1" expressionLanguage="javascript">
<text>"notok"</text>
</outputEntry>
<outputEntry id="outputEntry2" expressionLanguage="juel">
<outputEntry id="outputEntry2" expressionLanguage="feel">
<text>"work on your status first, as bronze you're not going to get anything"</text>
</outputEntry>
</rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('decision-table-head/editor - input', function() {

// then
expect(inputBo.inputExpression.text).to.equal('foo\nbar');
expect(inputBo.inputExpression.expressionLanguage).to.equal('juel');
expect(inputBo.inputExpression.expressionLanguage).to.equal('feel');
}));


Expand All @@ -126,7 +126,7 @@ describe('decision-table-head/editor - input', function() {
triggerClick(makeScriptEl);

// then
expect(inputBo.inputExpression.expressionLanguage).to.equal('juel');
expect(inputBo.inputExpression.expressionLanguage).to.equal('feel');
}));

});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export default class ExpressionLanguages {
this._config = {
options: EXPRESSION_LANGUAGE_OPTIONS,
defaults: {
editor: 'juel',
inputCell: 'feel'
editor: 'feel'
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('ExpressionLanguages', function() {

describe('defaults', () => {

it('should set default editor expression language to JUEL', () => {
it('should set default editor expression language to FEEL', () => {

// given
const expressionLanguages = createExpressionLanguages();
Expand All @@ -38,8 +38,8 @@ describe('ExpressionLanguages', function() {

// then
expect(defaultLanguage).to.eql({
value: 'juel',
label: 'JUEL'
value: 'feel',
label: 'FEEL'
});
});

Expand Down

0 comments on commit ed256c2

Please sign in to comment.