From 825f0dd1c19c340a0e716b0563a0409583875829 Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Mon, 22 Aug 2016 11:10:59 -0400 Subject: [PATCH 1/2] Include test for mapbox-gl module This test was not being run by `tap test/js/*/*.js ...` --- package.json | 2 +- test/js/mapbox-gl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e7bdb316bdf..152aa368be3 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,6 @@ "lint": "eslint --ignore-path .gitignore js test bench docs/_posts/examples/*.html", "open-changed-examples": "git diff --name-only mb-pages HEAD -- docs/_posts/examples/*.html | awk '{print \"http://127.0.0.1:4000/mapbox-gl-js/example/\" substr($0,33,length($0)-37)}' | xargs open", "test-suite": "node test/render.test.js && node test/query.test.js", - "test": "npm run lint && tap --reporter dot test/js/*/*.js test/build/webpack.test.js" + "test": "npm run lint && tap --reporter dot test/js/*/*.js test/js/mapbox-gl.js test/build/webpack.test.js" } } diff --git a/test/js/mapbox-gl.js b/test/js/mapbox-gl.js index efcda29fa37..ffbf139037b 100644 --- a/test/js/mapbox-gl.js +++ b/test/js/mapbox-gl.js @@ -1,7 +1,7 @@ 'use strict'; var test = require('tap').test; -var mapboxgl = require('../../../js/mapbox-gl'); +var mapboxgl = require('../../js/mapbox-gl'); test('mapboxgl', function(t) { t.test('version', function(t) { From ca93e60f349836e702f92aea1305a36fd29ee819 Mon Sep 17 00:00:00 2001 From: Lucas Wojciechowski Date: Mon, 22 Aug 2016 11:32:58 -0700 Subject: [PATCH 2/2] Ensure all files in "test/js" get run by tap --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 152aa368be3..4bc6094db0f 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,6 @@ "lint": "eslint --ignore-path .gitignore js test bench docs/_posts/examples/*.html", "open-changed-examples": "git diff --name-only mb-pages HEAD -- docs/_posts/examples/*.html | awk '{print \"http://127.0.0.1:4000/mapbox-gl-js/example/\" substr($0,33,length($0)-37)}' | xargs open", "test-suite": "node test/render.test.js && node test/query.test.js", - "test": "npm run lint && tap --reporter dot test/js/*/*.js test/js/mapbox-gl.js test/build/webpack.test.js" + "test": "npm run lint && tap --reporter dot test/js test/build/webpack.test.js" } }