Created
June 7, 2013 14:02
-
-
Save psyked/5729474 to your computer and use it in GitHub Desktop.
Regex find & replace to swap expect & toBe parameters for Jasmine tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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