O'Reilly logo

Mastering ArcGIS Server Development with JavaScript by Ken Doman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Our application

For our application, we're going to set up unit testing for our Y2K map app using Intern. Unlike our other applications, which only required a browser, we're going to use Node.js for this setup. If we were following real TDD/BDD practices, we would have written these tests while we were developing the application. However, this will give you practice writing tests for any legacy applications you've previously written.

For this sample, we'll follow the example provided by David Spriggs and Tom Wayson through GitHub (https://github.com/DavidSpriggs/intern-tutorial-esri-jsapi). We'll make some modifications to work with more recent updates in both the ArcGIS JavaScript API and in the modules associated with the tests.

Adding testing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required