Skip to content

Instantly share code, notes, and snippets.

@psyked
Created June 7, 2013 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psyked/5729474 to your computer and use it in GitHub Desktop.
Save psyked/5729474 to your computer and use it in GitHub Desktop.
Regex find & replace to swap expect & toBe parameters for Jasmine tests
expect\(([#a-zA-Z0-9,.'\(\) ]*?)\)\.toBe\(([#a-zA-Z0-9,.'\(\) ]*?)\);
expect($2).toBe($1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment