@@ -57,28 +57,28 @@ suite("Macros", function() {
57
57
test ( "Not parameterized, no externals" , function ( ) {
58
58
const msg = bundle . getMessage ( "ref-foo" ) ;
59
59
const val = bundle . format ( msg , { } , errs ) ;
60
- assert . equal ( val , "Foo $arg" ) ;
60
+ assert . equal ( val , "Foo { $arg} " ) ;
61
61
assert . equal ( errs . length , 0 ) ;
62
62
} ) ;
63
63
64
64
test ( "Not parameterized but with externals" , function ( ) {
65
65
const msg = bundle . getMessage ( "ref-foo" ) ;
66
66
const val = bundle . format ( msg , { arg : 1 } , errs ) ;
67
- assert . equal ( val , "Foo $arg" ) ;
67
+ assert . equal ( val , "Foo { $arg} " ) ;
68
68
assert . equal ( errs . length , 0 ) ;
69
69
} ) ;
70
70
71
71
test ( "No arguments, no externals" , function ( ) {
72
72
const msg = bundle . getMessage ( "call-foo-no-args" ) ;
73
73
const val = bundle . format ( msg , { } , errs ) ;
74
- assert . equal ( val , "Foo $arg" ) ;
74
+ assert . equal ( val , "Foo { $arg} " ) ;
75
75
assert . equal ( errs . length , 0 ) ;
76
76
} ) ;
77
77
78
78
test ( "No arguments, but with externals" , function ( ) {
79
79
const msg = bundle . getMessage ( "call-foo-no-args" ) ;
80
80
const val = bundle . format ( msg , { arg : 1 } , errs ) ;
81
- assert . equal ( val , "Foo $arg" ) ;
81
+ assert . equal ( val , "Foo { $arg} " ) ;
82
82
assert . equal ( errs . length , 0 ) ;
83
83
} ) ;
84
84
@@ -99,14 +99,14 @@ suite("Macros", function() {
99
99
test ( "With other args, no externals" , function ( ) {
100
100
const msg = bundle . getMessage ( "call-foo-with-other-arg" ) ;
101
101
const val = bundle . format ( msg , { } , errs ) ;
102
- assert . equal ( val , "Foo $arg" ) ;
102
+ assert . equal ( val , "Foo { $arg} " ) ;
103
103
assert . equal ( errs . length , 0 ) ;
104
104
} ) ;
105
105
106
106
test ( "With other args, and with externals" , function ( ) {
107
107
const msg = bundle . getMessage ( "call-foo-with-other-arg" ) ;
108
108
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
109
- assert . equal ( val , "Foo $arg" ) ;
109
+ assert . equal ( val , "Foo { $arg} " ) ;
110
110
assert . equal ( errs . length , 0 ) ;
111
111
} ) ;
112
112
} ) ;
@@ -128,28 +128,28 @@ suite("Macros", function() {
128
128
test ( "No parameterization, no externals" , function ( ) {
129
129
const msg = bundle . getMessage ( "ref-bar" ) ;
130
130
const val = bundle . format ( msg , { } , errs ) ;
131
- assert . equal ( val , "Foo $arg" ) ;
131
+ assert . equal ( val , "Foo { $arg} " ) ;
132
132
assert . equal ( errs . length , 0 ) ;
133
133
} ) ;
134
134
135
135
test ( "No parameterization, but with externals" , function ( ) {
136
136
const msg = bundle . getMessage ( "ref-bar" ) ;
137
137
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
138
- assert . equal ( val , "Foo $arg" ) ;
138
+ assert . equal ( val , "Foo { $arg} " ) ;
139
139
assert . equal ( errs . length , 0 ) ;
140
140
} ) ;
141
141
142
142
test ( "No arguments, no externals" , function ( ) {
143
143
const msg = bundle . getMessage ( "call-bar" ) ;
144
144
const val = bundle . format ( msg , { } , errs ) ;
145
- assert . equal ( val , "Foo $arg" ) ;
145
+ assert . equal ( val , "Foo { $arg} " ) ;
146
146
assert . equal ( errs . length , 0 ) ;
147
147
} ) ;
148
148
149
149
test ( "No arguments, but with externals" , function ( ) {
150
150
const msg = bundle . getMessage ( "call-bar" ) ;
151
151
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
152
- assert . equal ( val , "Foo $arg" ) ;
152
+ assert . equal ( val , "Foo { $arg} " ) ;
153
153
assert . equal ( errs . length , 0 ) ;
154
154
} ) ;
155
155
@@ -197,28 +197,28 @@ suite("Macros", function() {
197
197
test ( "No parameterization, no parameterization, no externals" , function ( ) {
198
198
const msg = bundle . getMessage ( "ref-bar" ) ;
199
199
const val = bundle . format ( msg , { } , errs ) ;
200
- assert . equal ( val , "Foo $arg" ) ;
200
+ assert . equal ( val , "Foo { $arg} " ) ;
201
201
assert . equal ( errs . length , 0 ) ;
202
202
} ) ;
203
203
204
204
test ( "No parameterization, no parameterization, with externals" , function ( ) {
205
205
const msg = bundle . getMessage ( "ref-bar" ) ;
206
206
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
207
- assert . equal ( val , "Foo $arg" ) ;
207
+ assert . equal ( val , "Foo { $arg} " ) ;
208
208
assert . equal ( errs . length , 0 ) ;
209
209
} ) ;
210
210
211
211
test ( "No parameterization, no arguments, no externals" , function ( ) {
212
212
const msg = bundle . getMessage ( "ref-baz" ) ;
213
213
const val = bundle . format ( msg , { } , errs ) ;
214
- assert . equal ( val , "Foo $arg" ) ;
214
+ assert . equal ( val , "Foo { $arg} " ) ;
215
215
assert . equal ( errs . length , 0 ) ;
216
216
} ) ;
217
217
218
218
test ( "No parameterization, no arguments, with externals" , function ( ) {
219
219
const msg = bundle . getMessage ( "ref-baz" ) ;
220
220
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
221
- assert . equal ( val , "Foo $arg" ) ;
221
+ assert . equal ( val , "Foo { $arg} " ) ;
222
222
assert . equal ( errs . length , 0 ) ;
223
223
} ) ;
224
224
@@ -239,28 +239,28 @@ suite("Macros", function() {
239
239
test ( "No arguments, no parameterization, no externals" , function ( ) {
240
240
const msg = bundle . getMessage ( "call-bar-no-args" ) ;
241
241
const val = bundle . format ( msg , { } , errs ) ;
242
- assert . equal ( val , "Foo $arg" ) ;
242
+ assert . equal ( val , "Foo { $arg} " ) ;
243
243
assert . equal ( errs . length , 0 ) ;
244
244
} ) ;
245
245
246
246
test ( "No arguments, no parameterization, with externals" , function ( ) {
247
247
const msg = bundle . getMessage ( "call-bar-no-args" ) ;
248
248
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
249
- assert . equal ( val , "Foo $arg" ) ;
249
+ assert . equal ( val , "Foo { $arg} " ) ;
250
250
assert . equal ( errs . length , 0 ) ;
251
251
} ) ;
252
252
253
253
test ( "No arguments, no arguments, no externals" , function ( ) {
254
254
const msg = bundle . getMessage ( "call-baz-no-args" ) ;
255
255
const val = bundle . format ( msg , { } , errs ) ;
256
- assert . equal ( val , "Foo $arg" ) ;
256
+ assert . equal ( val , "Foo { $arg} " ) ;
257
257
assert . equal ( errs . length , 0 ) ;
258
258
} ) ;
259
259
260
260
test ( "No arguments, no arguments, with externals" , function ( ) {
261
261
const msg = bundle . getMessage ( "call-baz-no-args" ) ;
262
262
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
263
- assert . equal ( val , "Foo $arg" ) ;
263
+ assert . equal ( val , "Foo { $arg} " ) ;
264
264
assert . equal ( errs . length , 0 ) ;
265
265
} ) ;
266
266
@@ -281,28 +281,28 @@ suite("Macros", function() {
281
281
test ( "With arguments, no parameterization, no externals" , function ( ) {
282
282
const msg = bundle . getMessage ( "call-bar-with-arg" ) ;
283
283
const val = bundle . format ( msg , { } , errs ) ;
284
- assert . equal ( val , "Foo $arg" ) ;
284
+ assert . equal ( val , "Foo { $arg} " ) ;
285
285
assert . equal ( errs . length , 0 ) ;
286
286
} ) ;
287
287
288
288
test ( "With arguments, no parameterization, with externals" , function ( ) {
289
289
const msg = bundle . getMessage ( "call-bar-with-arg" ) ;
290
290
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
291
- assert . equal ( val , "Foo $arg" ) ;
291
+ assert . equal ( val , "Foo { $arg} " ) ;
292
292
assert . equal ( errs . length , 0 ) ;
293
293
} ) ;
294
294
295
295
test ( "With arguments, no arguments, no externals" , function ( ) {
296
296
const msg = bundle . getMessage ( "call-baz-with-arg" ) ;
297
297
const val = bundle . format ( msg , { } , errs ) ;
298
- assert . equal ( val , "Foo $arg" ) ;
298
+ assert . equal ( val , "Foo { $arg} " ) ;
299
299
assert . equal ( errs . length , 0 ) ;
300
300
} ) ;
301
301
302
302
test ( "With arguments, no arguments, with externals" , function ( ) {
303
303
const msg = bundle . getMessage ( "call-baz-with-arg" ) ;
304
304
const val = bundle . format ( msg , { arg : 5 } , errs ) ;
305
- assert . equal ( val , "Foo $arg" ) ;
305
+ assert . equal ( val , "Foo { $arg} " ) ;
306
306
assert . equal ( errs . length , 0 ) ;
307
307
} ) ;
308
308
0 commit comments