File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ describe("util", () => {
58
58
} )
59
59
) ;
60
60
} ) ;
61
- it ( "defaults to body when both body and body path are provided" , ( ) => {
61
+ it ( "defaults to body path when both body and body path are provided" , ( ) => {
62
62
assert . equal (
63
- "foo " ,
63
+ "bar " ,
64
64
releaseBody ( {
65
65
github_ref : "" ,
66
66
github_repository : "" ,
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ export interface Config {
19
19
20
20
export const releaseBody = ( config : Config ) : string | undefined => {
21
21
return (
22
- config . input_body ||
23
22
( config . input_body_path &&
24
- readFileSync ( config . input_body_path ) . toString ( "utf8" ) )
23
+ readFileSync ( config . input_body_path ) . toString ( "utf8" ) ) ||
24
+ config . input_body
25
25
) ;
26
26
} ;
27
27
You can’t perform that action at this time.
0 commit comments