Closed jasonrudolph closed 7 years ago
We already support Jasmine functions for CoffeeScript. With the changes in this pull request, we bring that same support to JavaScript.
Specifically, symbols-view will identify the following items as functions:
describe
it
fit
ffit
fffit
fdescribe
ffdescribe
fffdescribe
xit
xdescribe
We can try this out inside symbol-views very own specs. (So meta.) Let's start by editing spec/symbols-view-spec.js in Atom:
spec/symbols-view-spec.js
Before the changes in this PR, the symbols view only identifies a single function:
After the changes in this PR, the symbols view kindly identifies Jasmine components:
We already support Jasmine functions for CoffeeScript. With the changes in this pull request, we bring that same support to JavaScript.
Specifically, symbols-view will identify the following items as functions:
describe
blocksit
blocksit
blocks (e.g.,fit
,ffit
,fffit
, etc.)describe
blocks (e.g.,fdescribe
,ffdescribe
,fffdescribe
, etc.)it
blocks (i.e.,xit
)describe
blocks (i.e.,xdescribe
)Demo
We can try this out inside symbol-views very own specs. (So meta.) Let's start by editing
spec/symbols-view-spec.js
in Atom:Before the changes in this PR, the symbols view only identifies a single function:
After the changes in this PR, the symbols view kindly identifies Jasmine components: