/spock-javascript

Example of using Spock to unit test your JavaScript on the JVM using Nashorn

Primary LanguageJavaScript

Spock and JavaScript using Nashorn example

Requirements:

  • JDK 8

To run the build, run this on a command prompt:

./gradlew clean build

You can learn more about the examples in this repo by reading my original blog post on the subject, Unit test your server-side JavaScript with Spock.