mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
27 lines
1.0 KiB
JavaScript
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',
|
|
))
|
|
})
|