mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-19 06:05:24 +02:00
feat: add database create
This commit is contained in:
14
test/commands/database/postgres/create.test.ts
Normal file
14
test/commands/database/postgres/create.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {runCommand} from '@oclif/test'
|
||||
import {expect} from 'chai'
|
||||
|
||||
describe('database:postgres:create', () => {
|
||||
it('runs database:postgres:create cmd', async () => {
|
||||
const {stdout} = await runCommand('database:postgres:create')
|
||||
expect(stdout).to.contain('hello world')
|
||||
})
|
||||
|
||||
it('runs database:postgres:create --name oclif', async () => {
|
||||
const {stdout} = await runCommand('database:postgres:create --name oclif')
|
||||
expect(stdout).to.contain('hello oclif')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user