Skip to content

Commit

Permalink
test: assertion for checking bouncer commands has been registered via…
Browse files Browse the repository at this point in the history
… configure
  • Loading branch information
Julien-R44 committed Jan 25, 2024
1 parent 658b71d commit deebe24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/configure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ test.group('Configure', (group) => {
.build('policies.stub', { source: stubsRoot })
.then((stub) => stub.prepare({}))

await assert.fileContains('adonisrc.ts', '@adonisjs/bouncer/commands')
await assert.fileContains('adonisrc.ts', '@adonisjs/bouncer/bouncer_provider')
await assert.fileContains('app/abilities/main.ts', abilitiesStub.contents)
await assert.fileContains('app/policies/main.ts', policiesStub.contents)
Expand Down

0 comments on commit deebe24

Please sign in to comment.