Skip to content

Commit

Permalink
Improved examples
Browse files Browse the repository at this point in the history
see #31
  • Loading branch information
maxkoryukov committed Feb 4, 2017
1 parent b21d859 commit bf70b18
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
7 changes: 4 additions & 3 deletions examples/Optimizations/get-an-optimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 4 additions & 3 deletions examples/Routes/get-a-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 4 additions & 3 deletions examples/Tracking/get-route-tracking-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
}
Expand Down

0 comments on commit bf70b18

Please sign in to comment.