zacharytamas / atom-jasmine

Snippets for writing Jasmine specs easier in Atom.
MIT License
10 stars 12 forks source link

Typescript function syntax #17

Open timmyg opened 7 years ago

timmyg commented 7 years ago

not sure if this is the best way to do this or even intended. I created a atom-jasmine-typescript atom package (my first one) but would prefer for this to be available in your package.

I am not sure how to make things configurable so I just did it this way.

zacharytamas commented 7 years ago

Hey Tim, yeah they make it pretty hard to make it configurable. This seems a sensible approach.

One thing I wonder about though is whether this causes a problem for Jasmine given that the this would be different. Some people persist test variables on this between their beforeEach, etc. and it functions. Does lexical this mess that up? I'm a bit out of practice with Jasmine these days.