We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69965a2 commit c67344dCopy full SHA for c67344d
test/integration/wallet.test.js
@@ -77,6 +77,23 @@ describe('Wallet', function () {
77
return done()
78
})
79
80
+
81
+ it('Without cookie access should be unauthorized', function (done) {
82
+ chai
83
+ .request(app)
84
+ .get(`/wallet/${userName}`)
85
+ .end((error, response) => {
86
+ if (error) {
87
+ return done(error)
88
+ }
89
90
+ expect(response).to.have.status(401)
91
+ expect(response.body.error).to.be.equal('Unauthorized')
92
+ expect(response.body.message).to.be.equal('Unauthenticated User')
93
94
+ return done()
95
+ })
96
97
98
99
describe('GET /wallet/:username', function () {
0 commit comments