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
error: Object #<IncomingMessage> has no method 'csrfToken' response_time=28, path=/users, page=1, limit=10, body=undefined, , status=500, response_type=application/json; charset=utf-8, type=api_error, message=Object #<IncomingMessage> has no method 'csrfToken', stack=TypeError: Object #<IncomingMessage> has no method 'csrfToken' | |
at /Users/fernandochucre/Projects/eskimo/etc/init/06-views.js:9:865 | |
at Layer.handle [as handle_request] (/Users/fernandochucre/Projects/eskimo/node_modules/express/lib/router/layer.js:95:5) | |
at trim_prefix (/Users/fernandochucre/Projects/eskimo/node_modules/express/lib/router/index.js:312:13) | |
at /Users/fernandochucre/Projects/eskimo/node_modules/express/lib/router/index.js:280:7 | |
at Function.process_params (/Users/fernandochucre/Projects/eskimo/node_modules/express/lib/router/index.js:330:12) | |
at next (/Users/fernandochucre/Projects/eskimo/node_modules/express/lib/router/index.js:271:10) | |
at nocache (/Users/fernandochucre/Projects/eskimo/node_modules/helmet/nod |
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
11 passing (5s) | |
6 failing | |
1) /users POST /users - should return 200 if user was created: | |
Error: expected 200 "OK", got 500 "Internal Server Error" | |
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12) | |
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11) | |
at Test.assert (node_modules/supertest/lib/test.js:148:18) | |
at Server.assert (node_modules/supertest/lib/test.js:127:12) | |
at net.js:1276:10 |
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
@RunWith(sprint.class) | |
class TestExample.java | |
@Resource | |
@WithYaml(cenarios={"teste.yml"}) | |
private YamlBuilder builder; | |
@Test | |
public void qualquerCoisa() { | |
Pessoa pessoa = builder.load<Pessoa>("fernando"); |
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
var sys = require('sys'); | |
var get_quadrant = function(lat, lng, quadrante, deep, center_horizontal, center_vertical) { | |
//16 loops | |
var quadrante = quadrante || 0; | |
var deep = deep || 1; | |
if(deep > 16) { | |
return quadrante; | |
} |
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
onMessage = function() { | |
var options = { | |
to:'outrousuario@jabber.org', | |
subject:'teste', | |
body:'teste' | |
} | |
window.plugins.xmpp.send( | |
options, | |
function(success) { | |
alert("send success") |