Created
March 24, 2017 15:17
-
-
Save jonathan-ostrander/e0444c916aae4e2d1b0161ee10961f77 to your computer and use it in GitHub Desktop.
Local scoping
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
| test: | |
| npm install -g jasmine | |
| jasmine test1.js test2.js | |
| FORCE: |
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
| let example = 'string 1'; | |
| describe('local variable', () => { | |
| it('should be local variable', () => { | |
| expect(example).toEqual('string 1'); | |
| }); | |
| }); |
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
| let example = 'string 2'; | |
| describe('local variable', () => { | |
| it('should be local variable', () => { | |
| expect(example).toEqual('string 2'); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment