What does "spec" mean in Javascript Testing
Spec is short for "Specification" as @DavinTryon suggested above.
Specification in terms of a test refer to the technical details of a given feature or application which must be fulfilled. The best way to think of this is as the technical specifications for a given unit of code to pass successfully. https://en.wikipedia.org/wiki/Unit_testing