Created
          September 9, 2014 13:27 
        
      - 
      
- 
        Save barahilia/62871d9219cee825d82e to your computer and use it in GitHub Desktop. 
    Workaround for R# complaining on use of an implicitly declared global variable
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | // This is a workaround for R# complaining on undefined global variables. | |
| // In practice they come from and are defined by Jasmine and Protractor | |
| // frameworks, so are not a real issues. | |
| // Jasmine | |
| var describe = function () { }; | |
| var beforeEach = function () { }; | |
| var afterEach = function () { }; | |
| var it = function () { }; | |
| var expect = function () { }; | |
| var spyOn = function () { }; | |
| // Protractor | |
| var protractor = function () { }; | |
| var by = function () { }; | |
| var browser = function () { }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Came across this solution and it worked for me. However by declaring them as functions it overlayed the existing global methods so I just did an inline declaration of all the method names without assigning them and it fixed the issue.