Skip to content

Instantly share code, notes, and snippets.

@jonathan-ostrander
Created March 24, 2017 15:17
Show Gist options
  • Save jonathan-ostrander/e0444c916aae4e2d1b0161ee10961f77 to your computer and use it in GitHub Desktop.
Save jonathan-ostrander/e0444c916aae4e2d1b0161ee10961f77 to your computer and use it in GitHub Desktop.
Local scoping
test:
npm install -g jasmine
jasmine test1.js test2.js
FORCE:
let example = 'string 1';
describe('local variable', () => {
it('should be local variable', () => {
expect(example).toEqual('string 1');
});
});
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