serverless/lib/plugins/remove/remove.test.js
Philipp Muens 8aad2372eb Refactor test structure
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00

24 lines
557 B
JavaScript

'use strict';
const expect = require('chai').expect;
const Remove = require('./remove');
const Serverless = require('../../Serverless');
describe('Remove', () => {
let remove;
let serverless;
beforeEach(() => {
serverless = new Serverless();
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);
});
});