@@ -34,11 +34,11 @@ The version number of this driver does not indicate supported ArangoDB versions!
3434
3535This driver uses semantic versioning:
3636
37- * A change in the bugfix version (e.g. X.Y.0 -> X.Y.1) indicates internal
37+ - A change in the bugfix version (e.g. X.Y.0 -> X.Y.1) indicates internal
3838 changes and should always be safe to upgrade.
39- * A change in the minor version (e.g. X.1.Z -> X.2.0) indicates additions and
39+ - A change in the minor version (e.g. X.1.Z -> X.2.0) indicates additions and
4040 backwards-compatible changes that should not affect your code.
41- * A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _ breaking_
41+ - A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _ breaking_
4242 changes that require changes in your code to upgrade.
4343
4444If you are getting weird errors or functions seem to be missing, make sure you
@@ -58,27 +58,6 @@ You can find the documentation for each version by clicking on the corresponding
5858date on the left in
5959[ the list of version tags] ( https://github.com/arangodb/arangojs/tags ) .
6060
61- ## Testing
62-
63- Run the tests using the ` yarn test ` or ` npm test ` commands:
64-
65- ``` sh
66- yarn test
67- # - or -
68- npm test
69- ```
70-
71- By default the tests will be run against a server listening on
72- ` http://localhost:8529 ` (using username ` root ` with no password). To
73- override this, you can set the environment variable ` TEST_ARANGODB_URL ` to
74- something different:
75-
76- ``` sh
77- TEST_ARANGODB_URL=http://myserver.local:8530 yarn test
78- # - or -
79- TEST_ARANGODB_URL=http://myserver.local:8530 npm test
80- ```
81-
8261## Install
8362
8463### With Yarn or NPM
@@ -170,11 +149,10 @@ const db = new Database();
170149var arangojs = require (" arangojs" );
171150var db = new arangojs.Database ();
172151var now = Date .now ();
173- db
174- .query ({
175- query: " RETURN @value" ,
176- bindVars: { value: now }
177- })
152+ db .query ({
153+ query: " RETURN @value" ,
154+ bindVars: { value: now }
155+ })
178156 .then (function (cursor ) {
179157 return cursor .next ().then (function (result ) {
180158 // ...
@@ -230,15 +208,14 @@ If the request failed at a network level or the connection was closed without re
230208``` js
231209// Using async/await
232210try {
233- const info = await db .createDatabase (' mydb' );
211+ const info = await db .createDatabase (" mydb" );
234212 // database created
235213} catch (err) {
236214 console .error (err .stack );
237215}
238216
239217// Using promises with arrow functions
240- db .createDatabase (' mydb' )
241- .then (
218+ db .createDatabase (" mydb" ).then (
242219 info => {
243220 // database created
244221 },
0 commit comments