Created
September 15, 2015 11:56
-
-
Save jhs/a198c75b4d06c72a5940 to your computer and use it in GitHub Desktop.
Committing to CouchDB Nano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhs@book:~/src/couchdb-nano$ git status | |
On branch master | |
Your branch is up-to-date with 'origin/master'. | |
nothing to commit, working directory clean | |
jhs@book:~/src/couchdb-nano$ echo >> lib/nano.js | |
jhs@book:~/src/couchdb-nano$ git commit -a -m 'Add a blank line' | |
> [email protected] jshint /Users/jhs/src/couchdb-nano | |
> jshint tests/*/*/*.js lib/*.js | |
> [email protected] codestyle /Users/jhs/src/couchdb-nano | |
> jscs -p google tests/*/*/*.js lib/*.js | |
No code style errors found. | |
> [email protected] mocked /Users/jhs/src/couchdb-nano | |
> tape tests/*/*/*.js | |
TAP version 13 | |
# nano/tests/unit/attachment/destroy:1 | |
ok 1 object | |
ok 2 function | |
ok 3 should be equal | |
ok 4 should be equivalent | |
# nano/tests/unit/attachment/get:1 | |
ok 5 object | |
ok 6 function | |
ok 7 should be equal | |
ok 8 should be equivalent | |
# nano/tests/unit/attachment/get:2 | |
ok 9 object | |
ok 10 function | |
ok 11 should be equal | |
ok 12 should be equivalent | |
# nano/tests/unit/attachment/insert:1 | |
ok 13 object | |
ok 14 function | |
ok 15 should be equal | |
ok 16 should be equivalent | |
# nano/tests/unit/attachment/insert:2 | |
ok 17 object | |
ok 18 function | |
ok 19 should be equal | |
ok 20 should be equivalent | |
# nano/tests/unit/attachment/insert:3 | |
ok 21 object | |
ok 22 function | |
ok 23 should be equal | |
ok 24 should be equivalent | |
# nano/tests/unit/database/changes:1 | |
ok 25 object | |
ok 26 function | |
ok 27 should be equal | |
ok 28 should be equivalent | |
# nano/tests/unit/database/changes:2 | |
ok 29 object | |
ok 30 function | |
ok 31 should be equal | |
ok 32 should be equivalent | |
# nano/tests/unit/database/compact:1 | |
ok 33 object | |
ok 34 function | |
ok 35 should be equal | |
ok 36 should be equivalent | |
# nano/tests/unit/database/create:1 | |
ok 37 object | |
ok 38 function | |
ok 39 should be equal | |
ok 40 should be equivalent | |
# nano/tests/unit/database/create:2 | |
ok 41 object | |
ok 42 function | |
ok 43 should be equal | |
ok 44 should be equivalent | |
# nano/tests/unit/database/destroy:1 | |
ok 45 object | |
ok 46 function | |
ok 47 should be equal | |
ok 48 should be equivalent | |
# nano/tests/unit/database/follow:1 | |
ok 49 object | |
ok 50 function | |
ok 51 should be equal | |
ok 52 should be equivalent | |
# nano/tests/unit/database/get:1 | |
ok 53 object | |
ok 54 function | |
ok 55 should be equal | |
ok 56 should be equivalent | |
# nano/tests/unit/database/list:1 | |
ok 57 object | |
ok 58 function | |
ok 59 should be equal | |
ok 60 should be equivalent | |
# nano/tests/unit/database/replicate:1 | |
ok 61 object | |
ok 62 function | |
ok 63 should be equal | |
ok 64 should be equivalent | |
# nano/tests/unit/database/replicate:2 | |
ok 65 object | |
ok 66 function | |
ok 67 should be equal | |
ok 68 should be equivalent | |
# nano/tests/unit/database/updates:1 | |
ok 69 object | |
ok 70 function | |
ok 71 should be equal | |
ok 72 should be equivalent | |
# nano/tests/unit/database/updates:2 | |
ok 73 object | |
ok 74 function | |
ok 75 should be equal | |
ok 76 should be equivalent | |
# nano/tests/unit/view/atomic:1 | |
ok 77 object | |
ok 78 function | |
ok 79 should be equal | |
ok 80 should be equivalent | |
# nano/tests/unit/view/compact:1 | |
ok 81 object | |
ok 82 function | |
ok 83 should be equal | |
ok 84 should be equivalent | |
# nano/tests/unit/view/viewWithList:1 | |
ok 85 object | |
ok 86 function | |
ok 87 should be equal | |
ok 88 should be equivalent | |
# nano/tests/unit/view/search:1 | |
ok 89 object | |
ok 90 function | |
ok 91 should be equal | |
ok 92 should be equivalent | |
# nano/tests/unit/view/show:1 | |
ok 93 object | |
ok 94 function | |
ok 95 should be equal | |
ok 96 should be equivalent | |
# nano/tests/unit/view/spatial:1 | |
ok 97 object | |
ok 98 function | |
ok 99 should be equal | |
ok 100 should be equivalent | |
# nano/tests/unit/view/view:1 | |
ok 101 object | |
ok 102 function | |
ok 103 should be equal | |
ok 104 should be equivalent | |
# nano/tests/unit/document/bulk:1 | |
ok 105 object | |
ok 106 function | |
ok 107 should be equal | |
ok 108 should be equivalent | |
# nano/tests/unit/document/bulk:2 | |
ok 109 object | |
ok 110 function | |
ok 111 should be equal | |
ok 112 should be equivalent | |
# nano/tests/unit/document/copy:1 | |
ok 113 object | |
ok 114 function | |
ok 115 should be equal | |
ok 116 should be equivalent | |
# nano/tests/unit/document/copy:1 | |
ok 117 object | |
ok 118 function | |
ok 119 (unnamed assert) | |
# nano/tests/unit/multipart/get:1 | |
ok 120 object | |
ok 121 function | |
ok 122 should be equal | |
ok 123 should be equivalent | |
# nano/tests/unit/multipart/insert:1 | |
ok 124 object | |
ok 125 function | |
ok 126 should be equal | |
ok 127 should be equivalent | |
# it should be able to set a jar box | |
ok 128 should be equal | |
# should be able to deal with html errors bad couches | |
ok 129 should be equal | |
# should be capable of using `error` | |
ok 130 should be equal | |
# should remove cloudant stacktraces | |
ok 131 should not be equal | |
ok 132 should be equal | |
# nano/tests/unit/server/followUpdates:1 | |
ok 133 object | |
ok 134 function | |
ok 135 should be equal | |
ok 136 should be equivalent | |
# nano/tests/unit/server/followUpdates:2 | |
ok 137 object | |
ok 138 function | |
ok 139 should be equal | |
ok 140 should be equivalent | |
# it should be able to set a jar box | |
ok 141 should be equal | |
ok 142 should be equal | |
ok 143 should be equal | |
# attachment/destroy | |
## setup | |
ok 144 create database | |
# attachment/destroy | |
## should be able to insert a new plain text attachment | |
ok 145 store the attachment | |
ok 146 response ok | |
ok 147 have a revision number | |
ok 148 delete the attachment | |
ok 149 response ok | |
ok 150 `id` should be `new` | |
# attachment/destroy | |
## should fail destroying with a bad filename | |
ok 151 no response should be given | |
# attachment/destroy | |
## teardown | |
ok 152 destroy database | |
ok 153 mocks didn't run | |
# attachment/get | |
## setup | |
ok 154 create database | |
# attachment/get | |
## should be able to fetch an attachment | |
ok 155 should store `hello` | |
ok 156 response ok | |
ok 157 should have a revision number | |
ok 158 should get `hello` | |
ok 159 string is reflexive | |
# attachment/get | |
## should insert and fetch a binary file | |
ok 160 should store `123` | |
ok 161 response ok | |
ok 162 should have a revision number | |
ok 163 should get the binary data | |
ok 164 binary data is reflexive | |
# attachment/get | |
## teardown | |
ok 165 destroy database | |
ok 166 mocks didn't run | |
# attachment/insert | |
## setup | |
ok 167 create database | |
# attachment/insert | |
## should be able to insert a simple attachment | |
ok 168 should store the attachment | |
ok 169 response ok | |
ok 170 should have a revision | |
# attachment/insert | |
## teardown | |
ok 171 destroy database | |
ok 172 mocks didn't run | |
# attachment/pipe | |
## setup | |
ok 173 create database | |
# attachment/pipe | |
## should be able to pipe to a writeStream | |
ok 174 Should store the pixel | |
ok 175 should be equal | |
# attachment/pipe | |
## should be able to pipe from a readStream | |
ok 176 should get the logo | |
ok 177 logo should remain unchanged | |
# attachment/pipe | |
## teardown | |
ok 178 destroy database | |
ok 179 mocks didn't run | |
# attachment/update | |
## setup | |
ok 180 create database | |
# attachment/update | |
## should be able to insert and update attachments | |
ok 181 should store hello | |
ok 182 response ok | |
ok 183 should have a revision | |
ok 184 should store the pixel | |
ok 185 should store a revision | |
# attachment/update | |
## should be able to fetch the updated pixel | |
ok 186 should get new | |
ok 187 should update doc | |
ok 188 response ok | |
# attachment/update | |
## teardown | |
ok 189 destroy database | |
ok 190 mocks didn't run | |
# database/changes | |
## setup | |
ok 191 create database | |
# database/changes | |
## should be able to insert three documents | |
ok 192 should store docs | |
# database/changes | |
## should be able to receive changes since seq:2 | |
ok 193 gets response from changes | |
ok 194 gets one result | |
ok 195 seq is 3 | |
# database/changes | |
## teardown | |
ok 196 destroy database | |
ok 197 mocks didn't run | |
# database/compact | |
## setup | |
ok 198 create database | |
# database/compact | |
## should store and delete `goofy` | |
ok 199 should have stored foo | |
ok 200 response should be ok | |
ok 201 should have deleted foo | |
ok 202 response ok | |
# database/compact | |
## should have run the compaction | |
ok 203 compact should respond | |
ok 204 info should respond | |
ok 205 document count is not 3 | |
ok 206 document should be deleted | |
ok 207 seq is two | |
# database/compact | |
## should finish compaction before ending | |
ok 208 compaction is complete | |
# database/compact | |
## teardown | |
ok 209 destroy database | |
ok 210 mocks didn't run | |
# database/create-and-destroy | |
## setup | |
ok 211 create database | |
# database/create-and-destroy | |
## should be able to create `az09_$()+-/` database | |
ok 212 should create database | |
# database/create-and-destroy | |
## should be able to use config from a nano object to create a db | |
ok 213 should create database | |
# database/create-and-destroy | |
## must destroy the databases we created | |
ok 214 should destroy all dbs | |
# database/create-and-destroy | |
## teardown | |
ok 215 destroy database | |
ok 216 mocks didn't run | |
# database/get | |
## setup | |
ok 217 create database | |
# database/get | |
## should be able to fetch the database | |
ok 218 should get the db | |
ok 219 should be empty | |
ok 220 name | |
# database/get | |
## resolves db URL correctly for http://app.com/_couchdb | |
ok 221 should get doc at prefixed path | |
# database/get | |
## teardown | |
ok 222 destroy database | |
ok 223 mocks didn't run | |
# database/list | |
## setup | |
ok 224 create database | |
# database/list | |
## should list the correct databases | |
ok 225 should list databases | |
ok 226 should have exactly 3 dbs | |
# database/list | |
## teardown | |
ok 227 destroy database | |
ok 228 mocks didn't run | |
# database/replicate | |
## setup | |
ok 229 create database | |
# database/replicate | |
## should insert a bunch of items | |
ok 230 should store docs | |
# database/replicate | |
## creates a bunch of database replicas | |
ok 231 created database(s) | |
# database/replicate | |
## should be able to replicate three docs | |
ok 232 replication should work | |
ok 233 should be able to invoke list | |
ok 234 and have three documents | |
# database/replicate | |
## should be able to replicate to a `nano` object | |
ok 235 should replicate | |
ok 236 should list | |
ok 237 and have three documents | |
# database/replicate | |
## should be able to replicate with params | |
ok 238 replication should work | |
# database/replicate | |
## should destroy the extra databases | |
ok 239 deleted databases | |
# database/replicate | |
## teardown | |
ok 240 destroy database | |
ok 241 mocks didn't run | |
# design/atomic | |
## setup | |
ok 242 create database | |
# design/atomic | |
## should be able to insert an atomic design doc | |
ok 243 should be no problems officer | |
ok 244 stores teh foo | |
ok 245 does not have an attitude | |
ok 246 got the revisions | |
# design/atomic | |
## should be able to insert atomically | |
ok 247 should be able to update | |
ok 248 and the right value was set | |
# design/atomic | |
## should be able to update with slashes on the id | |
ok 249 stores `wat` | |
ok 250 response ok | |
ok 251 should update | |
ok 252 with the right copy | |
# design/atomic | |
## teardown | |
ok 253 destroy database | |
ok 254 mocks didn't run | |
# design/compact | |
## setup | |
ok 255 create database | |
# design/compact | |
## should insert `alice` the design doc | |
ok 256 it should destroy the foo | |
# design/compact | |
## should be able to compact a view | |
ok 257 should be able to call the view | |
ok 258 and see stuff got deleted | |
# design/compact | |
## teardown | |
ok 259 destroy database | |
ok 260 mocks didn't run | |
# design/list | |
## setup | |
ok 261 create database | |
# design/list | |
## should create a ddoc and insert some docs | |
ok 262 should create view | |
ok 263 response is good | |
ok 264 store the peeps | |
# design/list | |
## should get the people by running the ddoc | |
ok 265 should response | |
ok 266 and list should be `hello` | |
# design/list | |
## teardown | |
ok 267 destroy database | |
ok 268 mocks didn't run | |
# design/multiple | |
## setup | |
ok 269 create database | |
# design/multiple | |
## should be able to insert docs and design doc | |
ok 270 should create views | |
ok 271 response ok | |
# design/multiple | |
## should insert a bunch of items | |
ok 272 should store docs | |
# design/multiple | |
## get multiple docs with a composed key | |
ok 273 should response | |
ok 274 has more or less than two rows | |
ok 275 foo is not the first id | |
ok 276 bar is not the second id | |
# design/multiple | |
## teardown | |
ok 277 destroy database | |
ok 278 mocks didn't run | |
# design/query | |
## setup | |
ok 279 create database | |
# design/query | |
## should create a ddoc and insert some docs | |
ok 280 should create view | |
ok 281 response is good | |
ok 282 store the peeps | |
# design/query | |
## should respond with derek when asked for derek | |
ok 283 no errors | |
ok 284 should be equal | |
ok 285 should be equal | |
ok 286 should be equal | |
ok 287 should be equal | |
ok 288 should be equal | |
ok 289 null | |
# design/query | |
## should have no cloning issues when doing queries | |
ok 290 no errors | |
ok 291 should be equal | |
ok 292 should be equal | |
ok 293 should be equal | |
ok 294 should be equal | |
ok 295 should be equal | |
ok 296 no errors | |
ok 297 should be equal | |
ok 298 should be equal | |
ok 299 should be equal | |
ok 300 should be equal | |
ok 301 should be equal | |
ok 302 no errors | |
ok 303 (unnamed assert) | |
ok 304 should be equal | |
ok 305 should be equal | |
# design/query | |
## teardown | |
ok 306 destroy database | |
ok 307 mocks didn't run | |
# design/search | |
## setup | |
ok 308 create database | |
# design/search | |
## should create a ddoc and insert some docs | |
ok 309 should create view | |
ok 310 response is good | |
ok 311 store the peeps | |
# design/search | |
## should respond with derek when asked for derek | |
ok 312 no errors | |
ok 313 should be equal | |
ok 314 should be equal | |
ok 315 should be equal | |
ok 316 should be equal | |
ok 317 should be equal | |
ok 318 null | |
# design/search | |
## should have no cloning issues when doing queries | |
ok 319 no errors | |
ok 320 should be equal | |
ok 321 should be equal | |
ok 322 should be equal | |
ok 323 should be equal | |
ok 324 should be equal | |
ok 325 no errors | |
ok 326 should be equal | |
ok 327 should be equal | |
ok 328 should be equal | |
ok 329 should be equal | |
ok 330 should be equal | |
ok 331 no errors | |
ok 332 (unnamed assert) | |
ok 333 should be equal | |
ok 334 should be equal | |
# design/search | |
## teardown | |
ok 335 destroy database | |
ok 336 mocks didn't run | |
# design/show | |
## setup | |
ok 337 create database | |
# design/show | |
## should insert a show ddoc | |
ok 338 should start the show | |
ok 339 response ok | |
ok 340 stores docs | |
# design/show | |
## should show the amazing clemens in json | |
ok 341 its alive | |
ok 342 should be equal | |
ok 343 should be equal | |
ok 344 should be equal | |
ok 345 should be equal | |
# design/show | |
## should show the amazing clemens in html | |
ok 346 should work | |
ok 347 should be equal | |
ok 348 should be equal | |
# design/show | |
## teardown | |
ok 349 destroy database | |
ok 350 mocks didn't run | |
# document/bulk | |
## setup | |
ok 351 create database | |
# document/bulk | |
## should be able to bulk insert two docs | |
ok 352 no error | |
ok 353 has two docs | |
ok 354 first got id | |
ok 355 other also got id | |
# document/bulk | |
## teardown | |
ok 356 destroy database | |
ok 357 mocks didn't run | |
# document/copy | |
## setup | |
ok 358 create database | |
# document/copy | |
## must insert two docs before the tests start | |
ok 359 stores src | |
ok 360 response ok | |
ok 361 haz rev | |
ok 362 stores dest | |
ok 363 oki doki | |
ok 364 response has rev | |
# document/copy | |
## should be able to copy and overwrite a document | |
ok 365 should have copied and overwritten foo_src to foo_dest | |
ok 366 status code should be 201 | |
# document/copy | |
## copy without overwrite should return conflict for exists docs | |
ok 367 should be a conflict | |
# document/copy | |
## copy to a new destination should work | |
ok 368 copies into new document | |
ok 369 Status code should be 201 | |
# document/copy | |
## teardown | |
ok 370 destroy database | |
ok 371 mocks didn't run | |
# document/destroy | |
## setup | |
ok 372 create database | |
# document/destroy | |
## should insert a document | |
ok 373 stores foo | |
ok 374 ok response | |
ok 375 response with rev | |
# document/destroy | |
## should delete a document | |
ok 376 deleted foo | |
ok 377 ok! | |
# document/destroy | |
## teardown | |
ok 378 destroy database | |
ok 379 mocks didn't run | |
# document/fetch | |
## setup | |
ok 380 create database | |
# document/fetch | |
## should insert a bunch of items | |
ok 381 should store docs | |
# document/fetch | |
## should be able to fetch with one key | |
ok 382 should work | |
ok 383 and get one row | |
ok 384 out of 3 | |
# document/fetch | |
## should be able to fetch with multiple keys | |
ok 385 no errors | |
ok 386 two rows | |
ok 387 out of 3 | |
# document/fetch | |
## should be able to fetch with params | |
ok 388 should work | |
ok 389 and get one row | |
ok 390 out of 3 | |
# document/fetch | |
## teardown | |
ok 391 destroy database | |
ok 392 mocks didn't run | |
# document/fetch_revs | |
## setup | |
ok 393 create database | |
# document/fetch_revs | |
## should insert a bunch of items | |
ok 394 should store docs | |
# document/fetch_revs | |
## should be able to fetch with one key | |
ok 395 should work | |
ok 396 and get one row | |
ok 397 out of 3 | |
ok 398 rev should not return key | |
# document/fetch_revs | |
## should be able to fetch with multiple keys | |
ok 399 it works | |
ok 400 two rows | |
ok 401 out of 3 | |
ok 402 no doc in 1 | |
ok 403 no doc in 2 | |
# document/fetch_revs | |
## should be able to fetch with params | |
ok 404 should work | |
ok 405 and get one row | |
ok 406 out of 3 | |
ok 407 rev should not return key | |
# document/fetch_revs | |
## teardown | |
ok 408 destroy database | |
ok 409 mocks didn't run | |
# document/get | |
## setup | |
ok 410 create database | |
# document/get | |
## should insert a one item | |
ok 411 should store docs | |
# document/get | |
## should get the document | |
ok 412 should get foobaz | |
ok 413 got revs info | |
ok 414 id is food | |
ok 415 baz is in foo | |
# document/get | |
## teardown | |
ok 416 destroy database | |
ok 417 mocks didn't run | |
# document/head | |
## setup | |
ok 418 create database | |
# document/head | |
## should insert a one item | |
ok 419 should store docs | |
# document/head | |
## should get a status code when you do head | |
ok 420 should get the head of foobaz | |
ok 421 and is ok | |
# document/head | |
## teardown | |
ok 422 destroy database | |
ok 423 mocks didn't run | |
# document/insert | |
## setup | |
ok 424 create database | |
# document/insert | |
## should insert one simple document | |
ok 425 should have stored foo | |
ok 426 response should be ok | |
ok 427 response should have rev | |
# document/insert | |
## should fail to insert again since it already exists | |
ok 428 should be conflict | |
ok 429 scope is couch | |
ok 430 type is conflict | |
# document/insert | |
## should be able to use custom params in insert | |
ok 431 should have stored foo | |
ok 432 response should be ok | |
ok 433 response should have rev | |
# document/insert | |
## should be able to insert functions in docs | |
ok 434 should have stored foo | |
ok 435 response should be ok | |
ok 436 response should have rev | |
ok 437 fn matches fn2 | |
ok 438 should get foo | |
# document/insert | |
## should be able to stream an insert | |
ok 439 should have stored foobar | |
ok 440 this is ok | |
ok 441 and i got revz | |
# document/insert | |
## teardown | |
ok 442 destroy database | |
ok 443 mocks didn't run | |
# document/list | |
## setup | |
ok 444 create database | |
# document/list | |
## should insert a bunch of items | |
ok 445 should store docs | |
# document/list | |
## should list the three documents | |
ok 446 should get list | |
ok 447 with total three rows | |
ok 448 and the rows themselves | |
# document/list | |
## should be able to list using the `relax` function | |
ok 449 not relaxed | |
ok 450 got meh rows | |
ok 451 but its only one #sadpanda | |
ok 452 out of three | |
# document/list | |
## should be able to list with a startkey | |
ok 453 should work | |
ok 454 get teh rows | |
ok 455 starts in row two | |
ok 456 out of three rows | |
ok 457 offset is 1 | |
# document/list | |
## teardown | |
ok 458 destroy database | |
ok 459 mocks didn't run | |
# document/update | |
## setup | |
ok 460 create database | |
# document/update | |
## should insert one doc | |
ok 461 stored foo | |
ok 462 response ok | |
ok 463 withs rev | |
# document/update | |
## should update the document | |
ok 464 should have deleted foo | |
ok 465 response should be ok | |
# document/update | |
## teardown | |
ok 466 destroy database | |
ok 467 mocks didn't run | |
# multipart/get | |
## setup | |
ok 468 create database | |
# multipart/get | |
## should be able to insert a doc with att | |
ok 469 should have stored foobaz | |
ok 470 response should be ok | |
ok 471 id is foobaz | |
ok 472 has rev | |
# multipart/get | |
## should be able to get the document with the attachment | |
ok 473 should get foobaz | |
ok 474 should have content type | |
ok 475 should be equal | |
ok 476 foobaz should be a buffer | |
# multipart/get | |
## teardown | |
ok 477 destroy database | |
ok 478 mocks didn't run | |
# multipart/insert | |
## setup | |
ok 479 create database | |
# multipart/insert | |
## should handle crazy encodings | |
ok 480 should have stored foo and attachment | |
ok 481 response should be ok | |
ok 482 response should have rev | |
# multipart/insert | |
## should test with presence of attachment | |
ok 483 should have stored the thingy | |
ok 484 should get the doc | |
ok 485 both attachments should be present | |
# multipart/insert | |
## should work with attachment as a buffer | |
ok 486 Should have stored foo and attachment | |
ok 487 Response should be ok | |
ok 488 Response should have rev | |
# multipart/insert | |
## teardown | |
ok 489 destroy database | |
ok 490 mocks didn't run | |
# shared/config | |
## setup | |
ok 491 create database | |
# shared/config | |
## should serve the root when no path is specified | |
ok 492 failed to get root | |
ok 493 version is defined | |
ok 494 relax | |
ok 495 had version | |
# shared/config | |
## should be able to parse urls | |
ok 496 simple url | |
ok 497 simple with trailing | |
ok 498 with authentication | |
ok 499 with escaped auth | |
ok 500 with dbname containing encoded slash | |
ok 501 with repeating dbname | |
ok 502 with subdir | |
ok 503 with port | |
ok 504 `a` database | |
# shared/config | |
## should not parse urls when parseURL flag set to false | |
ok 505 the untouched url | |
# shared/config | |
## should accept and handle customer http headers | |
ok 506 header `x-second-header` honored | |
ok 507 headers `x-second-header` honored | |
ok 508 should list | |
# shared/config | |
## should prevent shallow object copies | |
ok 509 simple url | |
ok 510 `requestDefaults` should be set | |
ok 511 should not be re-using the same object | |
# shared/config | |
## teardown | |
ok 512 destroy database | |
ok 513 mocks didn't run | |
# shared/cookie | |
## setup | |
ok 514 create database | |
# shared/cookie | |
## should be able to setup admin and login | |
ok 515 should create admin | |
ok 516 should have logged in successfully | |
ok 517 response should have a set-cookie header | |
# shared/cookie | |
## should be able to insert with a cookie | |
ok 518 should have stored value | |
ok 519 response should be ok | |
ok 520 response should have rev | |
# shared/cookie | |
## should be able to get the session | |
ok 521 should have gotten the session | |
ok 522 should be equal | |
# shared/cookie | |
## must restore admin parteh mode for other tests | |
ok 523 should have deleted admin user | |
# shared/cookie | |
## teardown | |
ok 524 destroy database | |
ok 525 mocks didn't run | |
# shared/error | |
## setup | |
ok 526 create database | |
# shared/error | |
## should throw when initialize fails | |
ok 527 should have throw | |
ok 528 with a description | |
ok 529 should have throw | |
ok 530 with a message | |
# shared/error | |
## should be able to stream the simplest request | |
ok 531 request worked | |
# shared/error | |
## should error when destroying a db that does not exist | |
ok 532 an error | |
ok 533 a note | |
ok 534 is missing | |
# shared/error | |
## teardown | |
ok 535 destroy database | |
ok 536 mocks didn't run | |
# shared/headers | |
## setup | |
ok 537 create database | |
# shared/headers | |
## should get headers | |
ok 538 should store hello | |
ok 539 response should be ok | |
ok 540 should have a revision number | |
ok 541 should get the hello | |
ok 542 status is not modified | |
ok 543 should get the hello | |
ok 544 status is `ok` | |
# shared/headers | |
## teardown | |
ok 545 destroy database | |
ok 546 mocks didn't run | |
# shared/log | |
## setup | |
ok 547 create database | |
# shared/log | |
## should be able to instantiate a log | |
ok 548 id is set `8e0ibj` | |
ok 549 should be equal | |
# shared/log | |
## teardown | |
ok 550 destroy database | |
ok 551 mocks didn't run | |
# shared/nano | |
## setup | |
ok 552 create database | |
# shared/nano | |
## should have a version and a path | |
ok 553 version is defined | |
ok 554 path is defined | |
# shared/nano | |
## teardown | |
ok 555 destroy database | |
ok 556 mocks didn't run | |
# shared/updates | |
## setup | |
# shared/updates | |
## should be able to track updates in couch | |
ok 557 got root | |
ok 558 updates are ok | |
ok 559 update was a create | |
ok 560 mydb was updated | |
# shared/updates | |
## should destroy mydb | |
ok 561 no errors | |
# shared/updates | |
## teardown | |
1..561 | |
# tests 561 | |
# pass 561 | |
# ok | |
> [email protected] test /Users/jhs/src/couchdb-nano | |
> DEBUG=* NOCK_OFF=true istanbul cover tape tests/*/*/*.js | |
Tue, 15 Sep 2015 11:54:54 GMT nock.intercept Overriding ClientRequest | |
Tue, 15 Sep 2015 11:54:54 GMT nock.intercept ClientRequest overridden | |
Tue, 15 Sep 2015 11:54:54 GMT nock.common overriding requests | |
Tue, 15 Sep 2015 11:54:54 GMT nock.common - overriding request for http | |
Tue, 15 Sep 2015 11:54:54 GMT nock.common - overridden request for http | |
Tue, 15 Sep 2015 11:54:54 GMT nock.common - overriding request for https | |
Tue, 15 Sep 2015 11:54:54 GMT nock.common - overridden request for https | |
TAP version 13 | |
# nano/tests/unit/attachment/destroy:1 | |
ok 1 object | |
ok 2 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/destroy { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/destroy { got: { method: 'DELETE', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/airplane-design/wings.pdf', qs: { rev: '3' } } } | |
ok 3 should be equal | |
ok 4 should be equivalent | |
# nano/tests/unit/attachment/get:1 | |
ok 5 object | |
ok 6 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/get { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/get { got: { method: 'GET', headers: {}, uri: 'http://localhost:5984/mock/airplane-design/wings.pdf', encoding: null, qs: { rev: 'rev-3' } } } | |
ok 7 should be equal | |
ok 8 should be equivalent | |
# nano/tests/unit/attachment/get:2 | |
ok 9 object | |
ok 10 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/get { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/get { got: { method: 'GET', headers: {}, uri: 'http://localhost:5984/mock/airplane-design/wings.pdf', encoding: null } } | |
ok 11 should be equal | |
ok 12 should be equivalent | |
# nano/tests/unit/attachment/insert:1 | |
ok 13 object | |
ok 14 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: <Buffer 42 4d 3a 00 00 00 00 00 00 00 36 00 00 00 28 00 00 00 01 00 00 00 ff ff ff ff 01 00 18 00 00 00 00 00 00 00 00 00 13 0b 00 00 13 0b 00 00 00 00 00 00 ... > } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: { method: 'PUT', headers: { 'content-type': 'image/bmp' }, uri: 'http://localhost:5984/mock/pixels/pixel.bmp', body: <Buffer 42 4d 3a 00 00 00 00 00 00 00 36 00 00 00 28 00 00 00 01 00 00 00 ff ff ff ff 01 00 18 00 00 00 00 00 00 00 00 00 13 0b 00 00 13 0b 00 00 00 00 00 00 ... > } } | |
ok 15 should be equal | |
ok 16 should be equivalent | |
# nano/tests/unit/attachment/insert:2 | |
ok 17 object | |
ok 18 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: 'brown' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: { method: 'PUT', headers: { 'content-type': 'text/plain' }, uri: 'http://localhost:5984/mock/pixels/meta.txt', body: 'brown' } } | |
ok 19 should be equal | |
ok 20 should be equivalent | |
# nano/tests/unit/attachment/insert:3 | |
ok 21 object | |
ok 22 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: 'white' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/attachment/insert { got: { method: 'PUT', headers: { 'content-type': 'text/plain' }, uri: 'http://localhost:5984/mock/pixels/meta.txt', qs: { rev: '2' }, body: 'white' } } | |
ok 23 should be equal | |
ok 24 should be equivalent | |
# nano/tests/unit/database/changes:1 | |
ok 25 object | |
ok 26 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/changes { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/changes { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_changes', qs: { since: '10' } } } | |
ok 27 should be equal | |
ok 28 should be equivalent | |
# nano/tests/unit/database/changes:2 | |
ok 29 object | |
ok 30 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/changes { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/changes { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_changes' } } | |
ok 31 should be equal | |
ok 32 should be equivalent | |
# nano/tests/unit/database/compact:1 | |
ok 33 object | |
ok 34 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/compact { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/compact { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_compact' } } | |
ok 35 should be equal | |
ok 36 should be equivalent | |
# nano/tests/unit/database/create:1 | |
ok 37 object | |
ok 38 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/create { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/create { got: { method: 'PUT', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock' } } | |
ok 39 should be equal | |
ok 40 should be equivalent | |
# nano/tests/unit/database/create:2 | |
ok 41 object | |
ok 42 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/create { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/create { got: { method: 'PUT', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/az09_%24()%2B-%2F' } } | |
ok 43 should be equal | |
ok 44 should be equivalent | |
# nano/tests/unit/database/destroy:1 | |
ok 45 object | |
ok 46 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/destroy { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/destroy { got: { method: 'DELETE', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock' } } | |
ok 47 should be equal | |
ok 48 should be equivalent | |
# nano/tests/unit/database/follow:1 | |
ok 49 object | |
ok 50 function | |
ok 51 should be equal | |
ok 52 should be equivalent | |
# nano/tests/unit/database/get:1 | |
ok 53 object | |
ok 54 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/get { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/get { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/space' } } | |
ok 55 should be equal | |
ok 56 should be equivalent | |
# nano/tests/unit/database/list:1 | |
ok 57 object | |
ok 58 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/list { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/list { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/_all_dbs' } } | |
ok 59 should be equal | |
ok 60 should be equivalent | |
# nano/tests/unit/database/replicate:1 | |
ok 61 object | |
ok 62 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/replicate { got: '{"source":"baa","target":"baashep"}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/replicate { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/_replicate', body: '{"source":"baa","target":"baashep"}' } } | |
ok 63 should be equal | |
ok 64 should be equivalent | |
# nano/tests/unit/database/replicate:2 | |
ok 65 object | |
ok 66 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/replicate { got: '{"some":"params","source":"molly","target":"anne"}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/replicate { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/_replicate', body: '{"some":"params","source":"molly","target":"anne"}' } } | |
ok 67 should be equal | |
ok 68 should be equivalent | |
# nano/tests/unit/database/updates:1 | |
ok 69 object | |
ok 70 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/updates { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/updates { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/_db_updates' } } | |
ok 71 should be equal | |
ok 72 should be equivalent | |
# nano/tests/unit/database/updates:2 | |
ok 73 object | |
ok 74 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/updates { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/database/updates { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/_db_updates', qs: { since: 1 } } } | |
ok 75 should be equal | |
ok 76 should be equivalent | |
# nano/tests/unit/view/atomic:1 | |
ok 77 object | |
ok 78 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/atomic { got: '{"field":"foo","value":"bar"}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/atomic { got: { method: 'PUT', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/update/_update/inplace/foobar', body: '{"field":"foo","value":"bar"}' } } | |
ok 79 should be equal | |
ok 80 should be equivalent | |
# nano/tests/unit/view/compact:1 | |
ok 81 object | |
ok 82 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/compact { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/compact { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_compact/alice' } } | |
ok 83 should be equal | |
ok 84 should be equivalent | |
# nano/tests/unit/view/viewWithList:1 | |
ok 85 object | |
ok 86 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/viewWithList { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/viewWithList { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/people/_list/my_list/by_name_and_city', qs: { key: '["Derek","San Francisco"]' } } } | |
ok 87 should be equal | |
ok 88 should be equivalent | |
# nano/tests/unit/view/search:1 | |
ok 89 object | |
ok 90 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/search { got: '{"keys":"dawg"}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/search { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/alice/_search/by_id', body: '{"keys":"dawg"}' } } | |
ok 91 should be equal | |
ok 92 should be equivalent | |
# nano/tests/unit/view/show:1 | |
ok 93 object | |
ok 94 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/show { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/show { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/people/_show/singleDoc/p_clemens' } } | |
ok 95 should be equal | |
ok 96 should be equivalent | |
# nano/tests/unit/view/spatial:1 | |
ok 97 object | |
ok 98 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/spatial { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/spatial { got: { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/people/_spatial/byArea', qs: { x: '1' } } } | |
ok 99 should be equal | |
ok 100 should be equivalent | |
# nano/tests/unit/view/view:1 | |
ok 101 object | |
ok 102 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/view { got: '{"keys":["foobar","barfoo"]}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/view/view { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_design/alice/_view/by_id', qs: { include_docs: true }, body: '{"keys":["foobar","barfoo"]}' } } | |
ok 103 should be equal | |
ok 104 should be equivalent | |
# nano/tests/unit/document/bulk:1 | |
ok 105 object | |
ok 106 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/bulk { got: '{"docs":[{"key":"baz","name":"bazzel"},{"key":"bar","name":"barry"}]}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/bulk { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_bulk_docs', body: '{"docs":[{"key":"baz","name":"bazzel"},{"key":"bar","name":"barry"}]}' } } | |
ok 107 should be equal | |
ok 108 should be equivalent | |
# nano/tests/unit/document/bulk:2 | |
ok 109 object | |
ok 110 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/bulk { got: '{"docs":[]}' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/bulk { got: { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/mock/_bulk_docs', qs: { wat: 'izlove' }, body: '{"docs":[]}' } } | |
ok 111 should be equal | |
ok 112 should be equivalent | |
# nano/tests/unit/document/copy:1 | |
ok 113 object | |
ok 114 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/copy { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/copy { got: { method: 'COPY', headers: { 'content-type': 'application/json', accept: 'application/json', Destination: 'numbers' }, uri: 'http://localhost:5984/mock/excel' } } | |
ok 115 should be equal | |
ok 116 should be equivalent | |
# nano/tests/unit/document/copy:1 | |
ok 117 object | |
ok 118 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/copy { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/document/copy { got: undefined } | |
ok 119 (unnamed assert) | |
# nano/tests/unit/multipart/get:1 | |
ok 120 object | |
ok 121 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/multipart/get { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/multipart/get { got: { method: 'GET', headers: { 'content-type': 'multipart/related' }, uri: 'http://localhost:5984/mock/space', encoding: null, qs: { extra: 'stuff', attachments: true } } } | |
ok 122 should be equal | |
ok 123 should be equivalent | |
# nano/tests/unit/multipart/insert:1 | |
ok 124 object | |
ok 125 function | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/multipart/insert { got: undefined } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/multipart/insert { got: { method: 'PUT', headers: { 'content-type': 'multipart/related' }, uri: 'http://localhost:5984/mock', multipart: [ [Object], [Object] ], qs: { extra: 'stuff' } } } | |
ok 126 should be equal | |
ok 127 should be equivalent | |
# it should be able to set a jar box | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { err: 'socket', body: undefined, headers: { statusCode: 500, uri: 'http://localhost:5984' } } | |
ok 128 should be equal | |
# should be able to deal with html errors bad couches | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { err: 'couch', body: '<b> Error happened </b>', headers: { statusCode: 500, uri: 'http://localhost:5984' } } | |
ok 129 should be equal | |
# should be capable of using `error` | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { err: 'couch', body: { error: 'not a reason' }, headers: { statusCode: 500, uri: 'http://localhost:5984' } } | |
ok 130 should be equal | |
# should remove cloudant stacktraces | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { method: 'GET', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/unit/shared/error { err: 'couch', body: { stack: 'Error: foo\n at Object.<anonymous> (/Users/jhs/src/couchdb-nano/tests/unit/shared/error.js:26:10)\n at Module._compile (module.js:434:26)\n at Object.Module._extensions..js (module.js:452:10)\n at Object.Module._extensions.(anonymous function) [as .js] (/Users/jhs/src/couchdb-nano/node_modules/istanbul/lib/hook.js:109:37)\n at Module.load (module.js:355:32)\n at Function.Module._load (module.js:310:12)\n at Module.require (module.js:365:17)\n at require (module.js:384:17)\n at /Users/jhs/src/couchdb-nano/node_modules/tape/bin/tape:9:13\n at Array.forEach (native)' }, headers: { statusCode: 500, uri: 'http://localhost:5984' } } | |
ok 131 should not be equal | |
ok 132 should be equal | |
# nano/tests/unit/server/followUpdates:1 | |
ok 133 object | |
ok 134 function | |
ok 135 should be equal | |
ok 136 should be equivalent | |
# nano/tests/unit/server/followUpdates:2 | |
ok 137 object | |
ok 138 function | |
ok 139 should be equal | |
ok 140 should be equivalent | |
# attachment/destroy | |
## setup | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/integration/attachment/destroy { method: 'PUT', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://localhost:5984/attachment_destroy' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/integration/attachment/destroy { err: 'socket', body: undefined, headers: { statusCode: 500, uri: 'http://localhost:5984/attachment_destroy' } } | |
not ok 141 create database | |
--- | |
operator: equal | |
expected: | |
null | |
actual: | |
{ address: '127.0.0.1', code: 'ECONNREFUSED', description: 'connect ECONNREFUSED 127.0.0.1:5984', errid: 'request', errno: 'ECONNREFUSED', name: 'Error', port: 5984, scope: 'socket', stacktrace: [ 'Error: connect ECONNREFUSED 127.0.0.1:5984', ' at Object.exports._errnoException (util.js:837:11)', ' at exports._exceptionWithHostPort (util.js:860:20)', ' at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)' ], syscall: 'connect' } | |
at: Request._callback (/Users/jhs/src/couchdb-nano/lib/nano.js:9:10258) | |
... | |
# attachment/destroy | |
## should be able to insert a new plain text attachment | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/integration/attachment/destroy { method: 'PUT', headers: { 'content-type': 'text/plain' }, uri: 'http://localhost:5984/attachment_destroy/new/att', body: 'Hello World!' } | |
Tue, 15 Sep 2015 11:54:54 GMT nano/tests/integration/attachment/destroy { err: 'socket', body: undefined, headers: { statusCode: 500, uri: 'http://localhost:5984/attachment_destroy/new/att' } } | |
not ok 142 store the attachment | |
--- | |
operator: equal | |
expected: | |
null | |
actual: | |
{ address: '127.0.0.1', code: 'ECONNREFUSED', description: 'connect ECONNREFUSED 127.0.0.1:5984', errid: 'request', errno: 'ECONNREFUSED', name: 'Error', port: 5984, scope: 'socket', stacktrace: [ 'Error: connect ECONNREFUSED 127.0.0.1:5984', ' at Object.exports._errnoException (util.js:837:11)', ' at exports._exceptionWithHostPort (util.js:860:20)', ' at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)' ], syscall: 'connect' } | |
at: Request._callback (/Users/jhs/src/couchdb-nano/lib/nano.js:9:10258) | |
... | |
============================================================================= | |
Writing coverage object [/Users/jhs/src/couchdb-nano/coverage/coverage.json] | |
Writing coverage reports at [/Users/jhs/src/couchdb-nano/coverage] | |
============================================================================= | |
=============================== Coverage summary =============================== | |
Statements : 79.54% ( 241/303 ) | |
Branches : 75.46% ( 123/163 ) | |
Functions : 72.22% ( 39/54 ) | |
Lines : 79.33% ( 238/300 ) | |
================================================================================ | |
/Users/jhs/src/couchdb-nano/tests/integration/attachment/destroy.js:24 | |
assert.equal(att.ok, true, 'response ok'); | |
^ | |
TypeError: Cannot read property 'ok' of undefined | |
at /Users/jhs/src/couchdb-nano/tests/integration/attachment/destroy.js:24:21 | |
at Request._callback (/Users/jhs/src/couchdb-nano/lib/nano.js:9:10258) | |
at self.callback (/Users/jhs/src/couchdb-nano/node_modules/request/request.js:198:22) | |
at emitOne (events.js:77:13) | |
at Request.emit (events.js:169:7) | |
at Request.onRequestError (/Users/jhs/src/couchdb-nano/node_modules/request/request.js:867:8) | |
at emitOne (events.js:77:13) | |
at ClientRequest.emit (events.js:169:7) | |
at Socket.socketErrorListener (_http_client.js:259:9) | |
at emitOne (events.js:77:13) | |
npm ERR! Darwin 14.5.0 | |
npm ERR! argv "/Users/jhs/.nvm/versions/node/v4.0.0/bin/node" "/Users/jhs/.nvm/versions/node/v4.0.0/bin/npm" "run" "test" | |
npm ERR! node v4.0.0 | |
npm ERR! npm v2.14.2 | |
npm ERR! code ELIFECYCLE | |
npm ERR! [email protected] test: `DEBUG=* NOCK_OFF=true istanbul cover tape tests/*/*/*.js` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] test script 'DEBUG=* NOCK_OFF=true istanbul cover tape tests/*/*/*.js'. | |
npm ERR! This is most likely a problem with the nano package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! DEBUG=* NOCK_OFF=true istanbul cover tape tests/*/*/*.js | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls nano | |
npm ERR! There is likely additional logging output above. | |
npm ERR! Please include the following file with any support request: | |
npm ERR! /Users/jhs/src/couchdb-nano/npm-debug.log | |
pre-commit: You've failed to pass all the hooks. | |
pre-commit: | |
pre-commit: The "npm run test" script failed. | |
pre-commit: | |
pre-commit: You can skip the git pre-commit hook by running: | |
pre-commit: | |
pre-commit: git commit -n (--no-verify) | |
pre-commit: | |
pre-commit: But this is not adviced as your tests are obviously failing. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment