Skip to content

Commit

Permalink
test: use incorrect syntax for FEEL syntax error tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jan 24, 2025
1 parent 0e97343 commit 085cdc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/spec/components/Feel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ describe('<FeelField>', function() {

// given
const clock = sinon.useFakeTimers();
const result = createFeelField({ container, getValue: () => '= foo == bar', feel: 'required' });
const result = createFeelField({ container, getValue: () => '= ...syntax error...', feel: 'required' });

// when
// trigger debounced validation
Expand Down
6 changes: 3 additions & 3 deletions test/spec/components/Templating.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe('<Templating>', function() {
it('should show syntax error (FEEL)', async function() {

// given
let result = createTemplatingEntry({ container, getValue: () => '= foo == bar' });
let result = createTemplatingEntry({ container, getValue: () => '= ...syntax error...' });

// when
await act(() => clock.tick(1000));
Expand All @@ -207,7 +207,7 @@ describe('<Templating>', function() {
it('should show syntax error (feelers)', async function() {

// given
const result = createTemplatingEntry({ container, getValue: () => 'Template {{foo == bar}}' });
const result = createTemplatingEntry({ container, getValue: () => 'Template {{...syntax error...}}' });

// when
// trigger debounced validation
Expand Down Expand Up @@ -250,7 +250,7 @@ describe('<Templating>', function() {
id: 'foo',
container,
errors,
getValue: () => '= foo == bar'
getValue: () => '= ....syntax error....'
});

// assume
Expand Down

0 comments on commit 085cdc7

Please sign in to comment.