Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused in test cases #10

Open
shenxiang11 opened this issue Dec 15, 2021 · 1 comment
Open

Confused in test cases #10

shenxiang11 opened this issue Dec 15, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@shenxiang11
Copy link

For example:

 it('test: p, bob, /dataset2/resource1, * - DELETE', async () => {
    app.mockCsrf()
    const response = await app.httpRequest()
      .delete('/dataset2/resource')
      .set('Authorization', 'bob')
    assert(response.status === 403)
  })

test /dataset2/resource1, however request /dataset2/resource

@casbin-bot
Copy link

@casbin-bot casbin-bot added the enhancement New feature or request label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants