From deebe2472f9ad69514019d915a6cfa8e4c637d37 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Thu, 25 Jan 2024 21:45:31 +0100 Subject: [PATCH] test: assertion for checking bouncer commands has been registered via configure --- tests/configure.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/configure.spec.ts b/tests/configure.spec.ts index 76d8005..d540e3f 100644 --- a/tests/configure.spec.ts +++ b/tests/configure.spec.ts @@ -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)