serverless/lib/plugins/platform/platform.test.js
2017-06-01 13:08:19 -07:00

25 lines
587 B
JavaScript

'use strict';
const expect = require('chai').expect;
const Serverless = require('../../Serverless');
describe('platform', () => {
let slStats;
let serverless;
beforeEach(() => {
serverless = new Serverless();
serverless.init();
});
describe('#constructor()', () => {
it('should have access to the serverless instance', () => {
expect(slStats.serverless).to.deep.equal(serverless);
});
it('should have commands', () => expect(slStats.commands).to.be.not.empty);
it('should have hooks', () => expect(slStats.hooks).to.be.not.empty);
});
});