mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
added comment to Service.load() method
This commit is contained in:
parent
cc6aed7c2f
commit
90ca69c1f9
@ -122,6 +122,12 @@ describe('Service', () => {
|
||||
serviceInstance = new Service(S);
|
||||
});
|
||||
|
||||
/*
|
||||
* Even though I wanna split this into multiple test cases
|
||||
* that would mean loading from the filesystem on each test case (slow!!)
|
||||
* and because the load() method returns a promise
|
||||
* I can't put it in a before() block
|
||||
*/
|
||||
it('should load from filesystem', () => {
|
||||
return serviceInstance.load().then((serviceInstance) => {
|
||||
expect(serviceInstance.service).to.be.equal('testService');
|
||||
@ -153,7 +159,7 @@ describe('Service', () => {
|
||||
|
||||
});
|
||||
|
||||
describe('toObjectPopulated()', () => {
|
||||
describe('#toObjectPopulated()', () => {
|
||||
|
||||
let serviceInstance;
|
||||
beforeEach(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user