Where can I get documents for the spec files


#1

I have searched in the document website but get nothing interesting.
https://atom.io/docs/v0.89.0/search?utf8=✓&q=spec

  • What does the something-spec.coffee do?
  • What is the functions such as describe beforeEach waitsForPromise?

I’m reading some packages’ source code to learn how to write a package.


#2

They are Jasmine specs:

http://jasmine.github.io/1.3/introduction.html

I don’t recall which version of Jasmine they are, but that should get you started.


#3

It’s Jasmine version 1.3.1.1354556913 – you can find out by launching the spec runner with Ctrl-Option-Command-P, opening the console with Option-Command-I, and running something like jasmine.version_.


#4

Thank you all! I’ve got what I want.