mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
26 lines
623 B
JavaScript
26 lines
623 B
JavaScript
'use strict'
|
|
|
|
const chai = require('chai')
|
|
const Remove = require('../../../../lib/plugins/remove')
|
|
const Serverless = require('../../../../lib/serverless')
|
|
|
|
const expect = chai.expect
|
|
|
|
describe('Remove', () => {
|
|
let remove
|
|
let serverless
|
|
|
|
beforeEach(() => {
|
|
serverless = new Serverless({ commands: [], options: {} })
|
|
remove = new Remove(serverless)
|
|
})
|
|
|
|
describe('#constructor()', () => {
|
|
it('should have access to the serverless instance', () => {
|
|
expect(remove.serverless).to.deep.equal(serverless)
|
|
})
|
|
|
|
it('should have commands', () => expect(remove.commands).to.be.not.empty)
|
|
})
|
|
})
|