Robert Schäfer
a07f48826b
Merge remote-tracking branch 'origin/master' into 106_authorization
2019-01-15 19:59:52 +01:00
Robert Schäfer
5e77e7eaa7
Merge branch 'master' into locations
2019-01-15 13:18:31 +01:00
Robert Schäfer
b2d1685b06
WIP: Integrate permissionless app into setup hooks
2019-01-15 00:39:06 +01:00
Robert Schäfer
9d541d8f27
Clean up helper.js
2019-01-14 23:31:00 +01:00
Robert Schäfer
70b20302fe
Probably exposed #106
2019-01-14 23:00:21 +01:00
Robert Schäfer
d0b975e782
Getting strange non-deterministic errors
2019-01-14 20:54:11 +01:00
Grzegorz Leoniec
79749e6570
Fixed isOwner permission
2019-01-14 17:07:20 +01:00
Robert Schäfer
6bbc76911a
Refactor test cases
2019-01-14 16:07:52 +01:00
Grzegorz Leoniec
3a90c84a21
Merge branch 'master' into locations
2019-01-13 15:43:37 +01:00
Grzegorz Leoniec
fb885ddcda
Merge branch 'master' into 106_authorization
2019-01-13 15:42:21 +01:00
Daksh
ca38892322
remove password from query.
2019-01-10 21:49:01 +05:30
Grzegorz Leoniec
887cc8fddf
Refactoring
2019-01-10 15:59:10 +01:00
Robert Schäfer
0893d3740e
Try to expose bug #106
...
It does not work as we have PERMISSIONS=disabled also in the server
we're trying to test.
2019-01-09 18:56:57 +01:00
Grzegorz Leoniec
ced8bd78bb
Added locations to seeded users
2019-01-09 17:21:30 +01:00
Grzegorz Leoniec
9629ca649a
Fixed user middleware
2019-01-09 17:20:25 +01:00
Robert Schäfer
9262fbb44f
Start a test server only once.
...
This keeps our tests small. It is quite a headache though, because of an
issue with jest and with transpiling. For reasons that I don't understand
running `yarn run test:jest` sometimes complains about open handles.
I would love to hear how to make our build more reliable.
2019-01-09 14:49:35 +01:00
Daksh
fbdbabc382
Merge branch 'master' into master
2019-01-09 19:08:37 +05:30
Grzegorz Leoniec
3765f5d046
Merge branch 'master' into locations
2019-01-09 13:37:04 +01:00
Grzegorz Leoniec
86c7b93386
Removed unneeded log
2019-01-09 13:14:18 +01:00
Grzegorz Leoniec
2571d82447
Disabled cypther logs and added DEBUG env var
2019-01-09 13:12:37 +01:00
Grzegorz Leoniec
0bfa047a5a
Fixed issues for non german / english languages
2019-01-08 15:12:44 +01:00
Robert Schäfer
ae39c18980
Run all backend tests
...
I accidently left `describe.only` in the test suite. That usually runs
only one block of tests instead of all tests. My fault, sorry
2019-01-08 14:57:33 +01:00
Grzegorz Leoniec
b5649ca2e3
Internationalized Locations
2019-01-08 14:34:00 +01:00
Robert Schäfer
2156b08e8f
Run yarn run lint --fix
...
@DakshMiglani check the build server for any errors:
https://travis-ci.com/Human-Connection/Nitro-Backend/builds/96505757#L658
Here you can see the build was fine, only eslint complained. Eslint is a
quick fix 😉
2019-01-08 14:20:05 +01:00
Grzegorz Leoniec
a313f941c5
Fixed eslint issue
2019-01-07 20:25:05 +01:00
Grzegorz Leoniec
cffce564ea
Fixed short_code
2019-01-07 17:58:27 +01:00
Grzegorz Leoniec
9fab4a8fe7
Fixed injection issues
2019-01-07 17:34:18 +01:00
Grzegorz Leoniec
77e77229b9
Fixed login and schema
2019-01-07 17:30:54 +01:00
Daksh
016119e768
fix variableName from id to userId
2019-01-07 13:00:19 +05:30
Daksh Miglani
5fd5795f39
fix jwt strategy
2019-01-07 12:48:47 +05:30
Grzegorz Leoniec
30d4318d17
Throw an error if requried env vars are missing
2019-01-04 15:15:07 +01:00
Grzegorz Leoniec
e9bc848a33
Improved locale handling and moved MAPBOX_TOKEN to env
2019-01-04 15:14:51 +01:00
Grzegorz Leoniec
1f818116e4
Merge branch 'master' into locations
2019-01-04 09:30:20 +01:00
Robert Schäfer
fd206c2b1f
Merge remote-tracking branch 'origin/master' into 500_error_on_login
2019-01-04 00:25:22 +01:00
Robert Schäfer
96d9bb49bc
Revert "add afterAll to make CI pass"
...
This reverts commit 3a9cb31e1f6039aecd428b2fc250b4b88a18ccfa.
See https://github.com/Human-Connection/Nitro-Backend/pull/88#discussion_r245157595
2019-01-03 23:55:05 +01:00
kachulio1
e1070e15f2
add done on async test
2019-01-03 22:03:23 +03:00
kachulio1
3a9cb31e1f
add afterAll to make CI pass
2019-01-03 20:40:28 +03:00
Gerald Michelant
4f4b6e5469
changed method to inject variable to login
2019-01-02 14:33:35 -05:00
Gerald Michelant
da1860bcd0
rewritting of login method
2019-01-02 14:33:35 -05:00
Gerald Michelant
57d9088c6c
throw new AuthenticationError on password error
2019-01-02 14:33:35 -05:00
Gerald Michelant
0b623cf083
capture error in readable format with try and catch
2019-01-02 14:33:35 -05:00
Robert Schäfer
d98a05a476
Fix eslint
2019-01-02 16:01:25 +01:00
Robert Schäfer
7634234afd
Match error message in tests with production code
2019-01-02 15:16:01 +01:00
Robert Schäfer
ffafd72c79
Merge remote-tracking branch 'Gerald1614/500_error_on_login' into 49_fix_no_user_with_that_email
2019-01-02 15:09:13 +01:00
Robert Schäfer
ec5cebf90f
DRY code with ES6
2019-01-02 14:56:55 +01:00
Robert Schäfer
70320f3c04
Undo mocks
2019-01-02 14:43:31 +01:00
Robert Schäfer
a0b42d9061
Properly reproduce #49
2019-01-02 13:38:51 +01:00
Robert Schäfer
23b454025a
Implement user factory and database clean up
2019-01-02 13:14:28 +01:00
Gerald Michelant
2959eeb931
rewritting of login method
2018-12-30 16:44:08 -05:00
Gerald Michelant
1e949f3fde
throw new AuthenticationError on password error
2018-12-28 22:17:28 -05:00