mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
24 lines
549 B
JavaScript
24 lines
549 B
JavaScript
'use strict'
|
|
|
|
const chai = require('chai')
|
|
const Info = require('../../../../lib/plugins/info')
|
|
const Serverless = require('../../../../lib/serverless')
|
|
|
|
const expect = chai.expect
|
|
chai.use(require('chai-as-promised'))
|
|
chai.use(require('sinon-chai'))
|
|
|
|
describe('Info', () => {
|
|
let info
|
|
let serverless
|
|
|
|
beforeEach(() => {
|
|
serverless = new Serverless({ commands: [], options: {} })
|
|
info = new Info(serverless)
|
|
})
|
|
|
|
describe('#constructor()', () => {
|
|
it('should have commands', () => expect(info.commands).to.be.not.empty)
|
|
})
|
|
})
|