diff --git a/examples/Optimizations/get-an-optimization.js b/examples/Optimizations/get-an-optimization.js index eb29eb4..f265736 100644 --- a/examples/Optimizations/get-an-optimization.js +++ b/examples/Optimizations/get-an-optimization.js @@ -4,14 +4,15 @@ const path = require("path") const debug = require("debug")("route4me-node") require("../init-examples-suite") +const helper = require("./../../test/helper") -// const Route4Me = require("route4me-node") - -describe(path.basename(__dirname), function T() { +helper.describeIntegration(path.basename(__dirname), function T() { this.timeout(5000) this.slow(3000) it(path.basename(__filename), (done) => { + // const Route4Me = require("route4me-node") + const apiKey = "11111111111111111111111111111111" const route4me = new Route4Me(apiKey) diff --git a/examples/Routes/get-a-route.js b/examples/Routes/get-a-route.js index 955d6ea..ebf9c7f 100644 --- a/examples/Routes/get-a-route.js +++ b/examples/Routes/get-a-route.js @@ -4,14 +4,15 @@ const path = require("path") const debug = require("debug")("route4me-node") require("../init-examples-suite") +const helper = require("./../../test/helper") -// const Route4Me = require("route4me-node") - -describe(path.basename(__dirname), function T() { +helper.describeIntegration(path.basename(__dirname), function T() { this.timeout(5000) this.slow(3000) it(path.basename(__filename), (done) => { + // const Route4Me = require("route4me-node") + const apiKey = "11111111111111111111111111111111" const route4me = new Route4Me(apiKey) diff --git a/examples/Tracking/get-route-tracking-data.js b/examples/Tracking/get-route-tracking-data.js index 580eeb4..7a51bf0 100644 --- a/examples/Tracking/get-route-tracking-data.js +++ b/examples/Tracking/get-route-tracking-data.js @@ -4,14 +4,15 @@ const path = require("path") const debug = require("debug")("route4me-node") require("../init-examples-suite") +const helper = require("./../../test/helper") -// const Route4Me = require("route4me-node") - -describe(path.basename(__dirname), function T() { +helper.describeIntegration(path.basename(__dirname), function T() { this.timeout(5000) this.slow(3000) it(path.basename(__filename), (done) => { + // const Route4Me = require("route4me-node") + const apiKey = "11111111111111111111111111111111" const route4me = new Route4Me(apiKey) diff --git a/gulpfile.js b/gulpfile.js index f6b68cf..6620411 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,8 +20,9 @@ gulp.task("build", ["build:node"]) const paths = { "test": [ - "test/**/*.spec.js", "test/**/*.test.js", + "test/**/*.spec.js", + "test/**/*.integration.js", "examples/**/*.js", ], }