-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for handling multiple commands from browser.post_connect_cmd #548
Conversation
They are assumed to be splitted by semicolon.
{ str: ';:play cypher;', expect: [':play cypher'] }, | ||
{ str: ':play cypher; :param x: 1', expect: [':play cypher', ':param x: 1'] }, | ||
{ str: 'RETURN 1; RETURN 3; :play start', expect: ['RETURN 1', 'RETURN 3', ':play start'] } | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting on ;
means that if you have a cypher query containing ;
then that will also split.
Test case: { str: 'MATCH (n: {foo: "bar;"}) RETURN n', expect: ['MATCH (n: {foo: "bar;"}) RETURN n'] }
Added basic semicolons-within-quotes detection @pe4cey. |
396a74c
to
4269c9d
Compare
4269c9d
to
42067f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
breaking commands on |
They are assumed to be separated by semicolon.
Example:
browser.post_connect_cmd=play welcome; style http://server.com/style.grass; config useBoltRouting: true
Remember to leave out the command character
:
from commands in the server config.Also, execution of Cypher is not possible.
I had to refactor some in the tests files to have the tests running as expected. There seems to be a bug in either
configureMockStore
orcreateEpicMiddleware
.