2024-05-29 11:51:04 -04:00

27 lines
1.0 KiB
JavaScript

'use strict'
const { expect } = require('chai')
const serviceCommands = require('../../../../../lib/cli/commands-schema/service')
describe('test/unit/lib/cli/commands-schema/service.test.js', () => {
it('should expose no service commands', () =>
expect(serviceCommands.get('create')).to.have.property('options'))
it('should expose service commands', () =>
expect(serviceCommands.get('package')).to.have.property('options'))
it('should not expose AWS service commands', () =>
expect(serviceCommands.has('deploy')).to.be.false)
it('should expose no service options on service commands', () =>
expect(serviceCommands.get('plugin install').options).to.have.property(
'help',
))
it('should expose service options on service commands', () =>
expect(serviceCommands.get('plugin install').options).to.have.property(
'config',
))
it('should not expose AWS service options on service commands', () =>
expect(serviceCommands.get('plugin install').options).to.not.have.property(
'region',
))
})