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