/2014-image-nav

Enhanced image navigation for the "Twenty Fourteen" default WordPress theme

Primary LanguagePHP

Twenty Fourteen Enhanced Image Navigation

Image navigation enhancements for the Twenty Fourteen default WordPress theme. Initially created as a demo for a WP Sessions presentation on JavaScript Unit Testing.

Running the tests

The tests for this library are written in QUnit, which we install using Bower. From the root of the repository in a terminal window, run bower install to download and install jQuery and QUnit. Then open tests/qunit-tests.html to run the tests.

Running tests from the command line with Grunt

It is possible to run the tests automatically from the command line using the Grunt JavaScript task runner. To use Grunt,

  1. Install the Grunt CLI by running npm install -g grunt-cli.
  2. Install the packages needed by this repository by running npm install from the root of the repository.
  3. Run grunt to run the unit tests & check your code for syntax errors.