Skip to content

Commit 9e3be00

Browse files
author
bweigel
committed
fix formatting
1 parent 75da94d commit 9e3be00

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

lib/inject.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ function injectAllRequirements(funcArtifact) {
106106
return this.options.zip
107107
? func
108108
: injectRequirements(
109-
path.join('.serverless', func.module, 'requirements'),
110-
func.package.artifact,
111-
this.options
112-
);
109+
path.join('.serverless', func.module, 'requirements'),
110+
func.package.artifact,
111+
this.options
112+
);
113113
});
114114
} else if (!this.options.zip) {
115115
return injectRequirements(

test.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ test('can package individually without moving modules to root of zip-File', t =>
148148
npm(['i', path]);
149149
sls(['--individually=true', '--moveup=false', 'package']);
150150

151-
152151
const zipfiles_hello = listZipFiles('.serverless/hello.zip');
153152
t.false(
154153
zipfiles_hello.includes(`fn2${sep}__init__.py`),
@@ -232,7 +231,12 @@ test('can package individually without moving modules to root of zip-File with o
232231
process.chdir('tests/base');
233232
const path = npm(['pack', '../..']);
234233
npm(['i', path]);
235-
sls(['--individually=true', '--moveup=false', '--useStaticCache=true', 'package']);
234+
sls([
235+
'--individually=true',
236+
'--moveup=false',
237+
'--useStaticCache=true',
238+
'package'
239+
]);
236240

237241
const zipfiles_hello = listZipFiles('.serverless/hello.zip');
238242
t.false(
@@ -317,8 +321,13 @@ test('can package individually without moving modules to root of zip-File with u
317321
process.chdir('tests/base');
318322
const path = npm(['pack', '../..']);
319323
npm(['i', path]);
320-
sls(['--individually=true', '--moveup=false', '--useStaticCache=true', '--useDownloadCache=true', 'package']);
321-
324+
sls([
325+
'--individually=true',
326+
'--moveup=false',
327+
'--useStaticCache=true',
328+
'--useDownloadCache=true',
329+
'package'
330+
]);
322331

323332
const zipfiles_hello = listZipFiles('.serverless/hello.zip');
324333
t.false(
@@ -399,7 +408,6 @@ test('can package individually without moving modules to root of zip-File with u
399408
t.end();
400409
});
401410

402-
403411
/*
404412
* News tests not in test.bats
405413
*/

0 commit comments

Comments
 (0)