Skip to content
Permalink
Browse files

- ActionParse - added missing test for parsing nothing

:goose:
  • Loading branch information...
maZahaca committed Nov 21, 2018
1 parent d998251 commit 3c89845b529b8f9baf82f555fa855316a86108ee
Showing with 27 additions and 0 deletions.
  1. +27 −0 test/integration/actions/actions.test.js
@@ -549,4 +549,31 @@ describe('Actions', () => {
expect(result).toEqual('test');
});
});

describe('ActionParse', () => {
test('typing value from prev action', async () => {
setServerResponse({
html: `<span>test</span><input type="text" />`,
});
const result = await parser.parse({
url,
actions: [
{
type: 'parse',
},
{
type: 'type',
scope: 'input',
useActionsResult: true,
},
],
rules: {
scope: 'input',
prop: 'value'
},
});

expect(result).toEqual('');
});
});
});

0 comments on commit 3c89845

Please sign in to comment.
You can’t perform that action at this time.