@@ -44,7 +44,7 @@ describe('index', () => {
44
44
} ,
45
45
generateNotesContext
46
46
)
47
- ) . resolves . toBe ( `${ defaultHeading } \n\n${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
47
+ ) . resolves . toBe ( `${ defaultHeading } \n\n* ${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
48
48
} , 30000 )
49
49
it ( 'resolves android version (backport)' , async ( ) => {
50
50
const android = pluginConfig . platforms . android
@@ -56,7 +56,7 @@ describe('index', () => {
56
56
} ,
57
57
generateNotesContext
58
58
)
59
- ) . resolves . toBe ( `${ defaultHeading } \n\n${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
59
+ ) . resolves . toBe ( `${ defaultHeading } \n\n* ${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
60
60
} , 30000 )
61
61
it ( 'resolves iOS version' , async ( ) => {
62
62
const iOS = pluginConfig . platforms . iOS
@@ -70,7 +70,7 @@ describe('index', () => {
70
70
} ,
71
71
generateNotesContext
72
72
)
73
- ) . resolves . toBe ( `${ defaultHeading } \n\n${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
73
+ ) . resolves . toBe ( `${ defaultHeading } \n\n* ${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
74
74
} )
75
75
it ( 'resolves iOS version (backport)' , async ( ) => {
76
76
const iOS = pluginConfig . platforms . iOS
@@ -82,7 +82,7 @@ describe('index', () => {
82
82
} ,
83
83
generateNotesContext
84
84
)
85
- ) . resolves . toBe ( `${ defaultHeading } \n\n${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
85
+ ) . resolves . toBe ( `${ defaultHeading } \n\n* ${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**` )
86
86
} )
87
87
it ( 'throws error on cwd not set' , async ( ) => {
88
88
const testGenerateNotesContext = {
@@ -114,22 +114,22 @@ describe('index', () => {
114
114
const heading = 'Example Heading'
115
115
const { iOS, android } = pluginConfig . platforms
116
116
117
- const expectedHeading = `### ${ heading } `
118
- const expectedAndroid = `${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**`
119
- const expectedIOS = `${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**`
117
+ const expectedHeading = `### ${ heading } \n `
118
+ const expectedAndroid = `* ${ android . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**`
119
+ const expectedIOS = `* ${ iOS . displayName } Version Range: **\`>= 1.2.3 and < 4.5.6\`**`
120
120
121
121
const subTestCases = [
122
122
{
123
123
platforms : { iOS, android } ,
124
- expected : [ expectedHeading , expectedAndroid , expectedIOS ] . join ( '\n\n ' ) ,
124
+ expected : [ expectedHeading , expectedAndroid , expectedIOS ] . join ( '\n' ) ,
125
125
} ,
126
126
{
127
127
platforms : { iOS } ,
128
- expected : [ expectedHeading , expectedIOS ] . join ( '\n\n ' ) ,
128
+ expected : [ expectedHeading , expectedIOS ] . join ( '\n' ) ,
129
129
} ,
130
130
{
131
131
platforms : { android } ,
132
- expected : [ expectedHeading , expectedAndroid ] . join ( '\n\n ' ) ,
132
+ expected : [ expectedHeading , expectedAndroid ] . join ( '\n' ) ,
133
133
} ,
134
134
]
135
135
0 commit comments