diff --git a/docs/plus/02-travis.md b/docs/plus/02-travis.md index 1a0d273ca..5f993868d 100644 --- a/docs/plus/02-travis.md +++ b/docs/plus/02-travis.md @@ -24,14 +24,14 @@ If you do not already have a `package.json` in your project root create one now. Travis runs `npm test` to trigger your tests so this is where you tell Travis how to run your tests. -```javascript +```json // ...snip... -'devDependencies': { - 'karma': '~0.12' +"devDependencies": { + "karma": "~0.12" }, // ...snip... -'scripts': { - 'test': 'karma start --single-run --browsers PhantomJS' +"scripts": { + "test": "karma start --single-run --browsers PhantomJS" } // ...snip... ``` diff --git a/docs/plus/04-semaphore.md b/docs/plus/04-semaphore.md index 22949a8a4..cb815dcbf 100644 --- a/docs/plus/04-semaphore.md +++ b/docs/plus/04-semaphore.md @@ -13,14 +13,14 @@ If you do not already have a `package.json` in your project root, create one now. This will both document your configuration and make it easy to run your tests. Here's an example: -```javascript +```json // ...snip... -'devDependencies': { - 'karma': '~0.10' +"devDependencies": { + "karma": "~0.10" }, // ...snip... -'scripts': { - 'test': './node_modules/.bin/karma start --single-run --browsers PhantomJS' +"scripts": { + "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS" } // ...snip... ``` @@ -28,9 +28,9 @@ make it easy to run your tests. Here's an example: Another option is to use Firefox as your test browser. To do this, change the last part to: -```javascript -'scripts': { - 'test': './node_modules/.bin/karma start --single-run --browsers Firefox' +```json +"scripts": { + "test": "./node_modules/.bin/karma start --single-run --browsers Firefox" } ```