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