Created
May 27, 2016 16:52
-
-
Save James1x0/773a080212cff2adbf2a719dc58e2b8c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
✓ should POST new records | |
mocha:runner run suite Acceptance :: Resource :: Payment Method GET /payment-methods/:id +1ms | |
GET /payment-methods/:id | |
koa:application use responseTime +0ms | |
koa:application use compress +0ms | |
koa:application use bodyParser +0ms | |
koa:application use - +0ms | |
koa:application use dispatch +0ms | |
koa:application use - +0ms | |
debug: routes: bt | |
debug: GET /bt/token -> .getClientToken | |
koa-router defined route GET /api/v1/bt/token +5ms | |
debug: resource: companies | |
init show company | |
koa-mount mount /api/v1 unnamed +1ms | |
koa:application use - +0ms | |
debug: resource: payment-methods | |
init show payment-method | |
koa-mount mount /api/v1 unnamed +1ms | |
koa:application use - +0ms | |
koa:application listen +0ms | |
superagent max redirects 5 +0ms | |
superagent get http://127.0.0.1:60920/api/v1/payment-methods/57487aa3a7ea079081d7e624 +0ms | |
koa-ratelimit remaining 2488/2500 ::ffff:127.0.0.1 +9ms | |
koa-router GET /api/v1/payment-methods/57487aa3a7ea079081d7e624 +5ms | |
koa-router test "/api/v1/bt/token" /^\/api\/v1\/bt\/token\/?$/i +0ms | |
koa-mount mount /api/v1 unnamed -> /payment-methods/57487aa3a7ea079081d7e624 +3ms | |
koa-mount enter /api/v1/payment-methods/57487aa3a7ea079081d7e624 -> /payment-methods/57487aa3a7ea079081d7e624 +0ms | |
koa-mount mount /api/v1 unnamed -> /payment-methods/57487aa3a7ea079081d7e624 +0ms | |
koa-mount enter /api/v1/payment-methods/57487aa3a7ea079081d7e624 -> /payment-methods/57487aa3a7ea079081d7e624 +0ms | |
koa-mount leave /api/v1/payment-methods/57487aa3a7ea079081d7e624 -> /payment-methods/57487aa3a7ea079081d7e624 +1ms | |
koa-mount leave /api/v1/payment-methods/57487aa3a7ea079081d7e624 -> /payment-methods/57487aa3a7ea079081d7e624 +0ms | |
superagent get http://127.0.0.1:60920/api/v1/payment-methods/57487aa3a7ea079081d7e624 -> 404 +0ms | |
superagent end get http://127.0.0.1:60920/api/v1/payment-methods/57487aa3a7ea079081d7e624 +0ms | |
superagent clear timeout get http://127.0.0.1:60920/api/v1/payment-methods/57487aa3a7ea079081d7e624 +1ms | |
superagent clear timeout get http://127.0.0.1:60920/api/v1/payment-methods/57487aa3a7ea079081d7e624 +0ms | |
✓ should return not found | |
koa:application use responseTime +2ms | |
koa:application use compress +0ms | |
koa:application use bodyParser +0ms | |
koa:application use - +0ms | |
koa:application use dispatch +0ms | |
koa:application use - +1ms | |
debug: routes: bt | |
debug: GET /bt/token -> .getClientToken | |
koa-router defined route GET /api/v1/bt/token +5ms | |
debug: resource: companies | |
init show company | |
koa-mount mount /api/v1 unnamed +0ms | |
koa:application use - +1ms | |
debug: resource: payment-methods | |
init show payment-method | |
koa-mount mount /api/v1 unnamed +0ms | |
koa:application use - +0ms | |
{ created: 2016-05-27T16:49:39.155Z, | |
_id: 57487aa3a7ea079081d7e625, | |
company: | |
{ address: {}, | |
created: 2016-05-27T16:49:39.123Z, | |
_id: 57487aa3a7ea079081d7e620, | |
email: '[email protected]', | |
name: 'Test Company', | |
__v: 0 }, | |
nonce: '12333', | |
__v: 0 } '/api/v1/payment-methods/57487aa3a7ea079081d7e625' | |
koa:application listen +1ms | |
superagent max redirects 5 +0ms | |
superagent get http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625 +0ms | |
koa-ratelimit remaining 2487/2500 ::ffff:127.0.0.1 +17ms | |
koa-router GET /api/v1/payment-methods/57487aa3a7ea079081d7e625 +11ms | |
koa-router test "/api/v1/bt/token" /^\/api\/v1\/bt\/token\/?$/i +0ms | |
koa-mount mount /api/v1 unnamed -> /payment-methods/57487aa3a7ea079081d7e625 +9ms | |
koa-mount enter /api/v1/payment-methods/57487aa3a7ea079081d7e625 -> /payment-methods/57487aa3a7ea079081d7e625 +0ms | |
koa-mount mount /api/v1 unnamed -> /payment-methods/57487aa3a7ea079081d7e625 +0ms | |
koa-mount enter /api/v1/payment-methods/57487aa3a7ea079081d7e625 -> /payment-methods/57487aa3a7ea079081d7e625 +0ms | |
koa-mount leave /api/v1/payment-methods/57487aa3a7ea079081d7e625 -> /payment-methods/57487aa3a7ea079081d7e625 +0ms | |
koa-mount leave /api/v1/payment-methods/57487aa3a7ea079081d7e625 -> /payment-methods/57487aa3a7ea079081d7e625 +0ms | |
superagent get http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625 -> 404 +1ms | |
superagent end get http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625 +0ms | |
superagent clear timeout get http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625 +0ms | |
superagent clear timeout get http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625 +0ms | |
{ Error: Not Found | |
at Test.Request.callback (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/index.js:792:17) | |
at IncomingMessage.<anonymous> (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/index.js:990:12) | |
at emitNone (events.js:91:20) | |
at IncomingMessage.emit (events.js:185:7) | |
at endReadableNT (_stream_readable.js:926:12) | |
at _combinedTickCallback (internal/process/next_tick.js:74:11) | |
at process._tickCallback (internal/process/next_tick.js:98:9) | |
original: null, | |
response: | |
Response { | |
domain: null, | |
_events: {}, | |
_eventsCount: 0, | |
_maxListeners: undefined, | |
res: | |
IncomingMessage { | |
_readableState: [Object], | |
readable: false, | |
domain: null, | |
_events: [Object], | |
_eventsCount: 4, | |
_maxListeners: undefined, | |
socket: [Object], | |
connection: [Object], | |
httpVersionMajor: 1, | |
httpVersionMinor: 1, | |
httpVersion: '1.1', | |
complete: true, | |
headers: [Object], | |
rawHeaders: [Object], | |
trailers: {}, | |
rawTrailers: [], | |
upgrade: false, | |
url: '', | |
method: null, | |
statusCode: 404, | |
statusMessage: 'Not Found', | |
client: [Object], | |
_consuming: true, | |
_dumped: false, | |
req: [Object], | |
text: 'Not Found', | |
read: [Function], | |
body: undefined }, | |
request: | |
Test { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
_agent: false, | |
_formData: null, | |
method: 'get', | |
url: 'http://127.0.0.1:60923/api/v1/payment-methods/57487aa3a7ea079081d7e625', | |
header: {}, | |
writable: true, | |
_redirects: 0, | |
_maxRedirects: 5, | |
cookies: '', | |
qs: {}, | |
qsRaw: [], | |
_redirectList: [], | |
app: [Object], | |
req: [Object], | |
protocol: 'http:', | |
host: '127.0.0.1:60923', | |
_callback: [Function], | |
_promise: [Object], | |
res: [Object], | |
response: [Circular], | |
_timeout: 0, | |
called: true }, | |
req: | |
ClientRequest { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 3, | |
_maxListeners: undefined, | |
output: [], | |
outputEncodings: [], | |
outputCallbacks: [], | |
outputSize: 0, | |
writable: true, | |
_last: true, | |
chunkedEncoding: false, | |
shouldKeepAlive: false, | |
useChunkedEncodingByDefault: false, | |
sendDate: false, | |
_removedHeader: {}, | |
_contentLength: 0, | |
_hasBody: true, | |
_trailer: '', | |
finished: true, | |
_headerSent: true, | |
socket: [Object], | |
connection: [Object], | |
_header: 'GET /api/v1/payment-methods/57487aa3a7ea079081d7e625 HTTP/1.1\r\nHost: 127.0.0.1:60923\r\nAccept-Encodi mocha:runner run suite Unit :: Model +7ms | |
ng: gzip, deflate\r\nUser-Agent: node-superagent/1.2.0\r\nConnection: close\r\n\r\n', | |
_headers: [Object], | |
_headerNames: [Object], | |
_onPendingData: null, | |
agent: [Object], | |
socketPath: undefined, | |
method: 'GET', | |
path: '/api/v1/payment-methods/57487aa3a7ea079081d7e625', | |
parser: null, | |
res: [Object] }, | |
links: {}, | |
text: 'Not Found', | |
body: {}, | |
files: {}, | |
buffered: true, | |
headers: | |
{ 'x-powered-by': 'koa', | |
vary: 'Accept-Encoding', | |
'x-ratelimit-limit': '2500', | |
'x-ratelimit-remaining': '2487', | |
'x-ratelimit-reset': '1464371378', | |
'x-response-time': '9ms', | |
'content-type': 'text/plain; charset=utf-8', | |
'content-length': '9', | |
date: 'Fri, 27 May 2016 16:49:39 GMT', | |
connection: 'close' }, | |
header: | |
{ 'x-powered-by': 'koa', | |
vary: 'Accept-Encoding mocha:runner run suite Unit :: Model Validation +0ms | |
', | |
'x-ratelimit-limit': '2500', | |
'x-ratelimit-remaining': '2487', | |
'x-ratelimit-reset': '1464371378', | |
'x-response-time': '9ms', | |
'content-type': 'text/plain; charset=utf-8', | |
'content-length': '9', | |
date: 'Fri, 27 May 2016 16:49:39 GMT', | |
connection: 'close' }, | |
statusCode: 404, | |
status: 404, | |
statusType: 4, | |
info: false, | |
ok: false, | |
redirect: false, | |
clientError: true, | |
serverError: false, | |
error: | |
{ Error: cannot GET /api/v1/payment-methods/57487aa3a7ea079081d7e625 (404) | |
at Response.toError (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/response.js:106:13) | |
at Response.setStatusProperties (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/response.js:193:12) | |
at new Response (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/response.js:42:8) | |
at IncomingMessage.<anonymous> (/Users/james/Documents/pods/granite/igneous/node_modules/chai-http/node_modules/superagent/lib/node/index.js:986:22) | |
at emitNone (events.js:91:20) | |
at IncomingMessage.emit (events.js:185:7) | |
at endReadableNT (_stream_readable.js:926:12) | |
at _combinedTickCallback (internal/process/next_tick.js:74:11) | |
at process._tickCallback (internal/process/next_tick.js:98:9) | |
status: 404, | |
text: 'Not Found', | |
method: 'GET', | |
path: '/api/v1/payment-methods/57487aa3a7ea079081d7e625' }, | |
accepted: false, | |
noContent: false, | |
badRequest: false, | |
unauthorized: false, | |
notAcceptable: false, | |
forbidden: false, | |
notFound: true, | |
charset: 'utf-8', | |
type: 'text/plain', | |
setEncoding: [Function: bound ], | |
redirects: [] }, | |
status: 404 } | |
1) should get a record | |
Unit :: Model | |
Validation | |
✓ should fail | |
✓ should pass | |
mocha:runner run suite Unit :: Model +3ms | |
Unit :: Model | |
mocha:runner run suite Unit :: Model Validation +0ms | |
Validation | |
✓ should fail | |
✓ should pass | |
mocha:runner finished running +1ms | |
16 passing (808ms) | |
1 failing | |
1) Acceptance :: Resource :: Payment Method GET /payment-methods/:id should get a record: | |
Error: Not Found | |
at Test.Request.callback (node_modules/chai-http/node_modules/superagent/lib/node/index.js:792:17) | |
at IncomingMessage.<anonymous> (node_modules/chai-http/node_modules/superagent/lib/node/index.js:990:12) | |
at endReadableNT (_stream_readable.js:926:12) | |
at _combinedTickCallback (internal/process/next_tick.js:74:11) | |
at process._tickCallback (internal/process/next_tick.js:98:9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment