Skip to content

Instantly share code, notes, and snippets.

@psyked
Created June 7, 2013 14:02
Show Gist options
  • 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