This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
import test from 'ava' | |
import supertest from 'supertest' | |
process.env.MONGODB_APPLICATION_USER = 'admin' | |
process.env.MONGODB_APPLICATION_DATABASE = 'admin' | |
process.env.MONGODB_APPLICATION_PASS = 'qweqwe' | |
process.env.MONGODB_HOST = 'localhost' | |
const server = require('../index') | |
let listen = null | |
let db = null |
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParameters": true, |
var directionsService = new google.maps.DirectionsService(); | |
var request = { | |
origin : 'Melbourne VIC', // a city, full address, landmark etc | |
destination : 'Sydney NSW', | |
travelMode : google.maps.DirectionsTravelMode.DRIVING | |
}; | |
directionsService.route(request, function(response, status) { | |
if ( status == google.maps.DirectionsStatus.OK ) { |