serverless-step-functions-offline
Version:
Serverlesss plugin to support step function offline
43 lines • 1.41 kB
JavaScript
// 'use strict';
// const expect = require('chai').expect;
// const should = require('chai').should;
// const sinon = require('sinon');
// const Serverless = require('serverless/lib/Serverless');
// const CLI = require('serverless/lib/classes/CLI');
//
//
// describe('build.js', () => {
// describe('#findFunctionsPathAndHandler()', () => {
//
//
// it('should throw err - can not read property', (done) => {
// stepFunctionsOfflinePlugin.variables = {FirstLambda: 'firstLamda'};
// stepFunctionsOfflinePlugin.hooks[hooks.buildStepWorkFlow]()
// .then((res) => {
// expect(res).to.be.an('undefined')
// })
// .catch((err) => {
// expect(err).to.throw(/Cannot read property/);
// }).finally(done);
// });
//
// it('should throw err - goody', (done) => {
// stepFunctionsOfflinePlugin.variables = {FirstLambda: 'firstLambda'};
// stepFunctionsOfflinePlugin.hooks[hooks.buildStepWorkFlow]()
// .then((res) => {
// console.log(111)
// })
// .catch((err) => {
// console.log(222)
//
// }).finally(done);
// });
//
// });
//
// // describe('#buildStepWorkFlow()', () => {
// //
// //
// //
// // });
// });