mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
ComponentCreate: add sPath to evt.data
This commit is contained in:
parent
4b79e5e751
commit
c4f7fb6b0a
@ -169,6 +169,7 @@ usage: serverless component create`,
|
||||
sPath: this.evt.options.name
|
||||
});
|
||||
this.S.state.setAsset(component);
|
||||
this.evt.data.sPath = component._config.sPath;
|
||||
return component.save();
|
||||
};
|
||||
|
||||
|
||||
@ -23,6 +23,7 @@ let serverless;
|
||||
let validateEvent = function(evt) {
|
||||
assert.equal(true, typeof evt.options.name != 'undefined');
|
||||
assert.equal(true, typeof evt.options.runtime != 'undefined');
|
||||
assert.equal(true, typeof evt.data.sPath != 'undefined');
|
||||
};
|
||||
|
||||
describe('Test action: Component Create', function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user