@@ -181,6 +181,27 @@ describe("i18n", function () {
181
181
"A cada 5 minutos, entre 15:00 e 15:59, somente de segunda-feira a sexta-feira e domingo"
182
182
) ;
183
183
} ) ;
184
+
185
+ it ( "45 10 * * 6#2" , function ( ) {
186
+ assert . equal (
187
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
188
+ "Às 10:45, no segundo sábado do mês"
189
+ ) ;
190
+ } ) ;
191
+
192
+ it ( "45 10 * * 0#3" , function ( ) {
193
+ assert . equal (
194
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
195
+ "Às 10:45, no terceiro domingo do mês"
196
+ ) ;
197
+ } ) ;
198
+
199
+ it ( "45 10 * * 1#3" , function ( ) {
200
+ assert . equal (
201
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
202
+ "Às 10:45, na terceira segunda-feira do mês"
203
+ ) ;
204
+ } ) ;
184
205
} ) ;
185
206
186
207
@@ -195,6 +216,28 @@ describe("i18n", function () {
195
216
"A cada 5 minutos, entre 15:00 e 15:59, de segunda-feira a sexta-feira"
196
217
) ;
197
218
} ) ;
219
+
220
+
221
+ it ( "45 10 * * 6#2" , function ( ) {
222
+ assert . equal (
223
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
224
+ "Às 10:45, no segundo sábado do mês"
225
+ ) ;
226
+ } ) ;
227
+
228
+ it ( "45 10 * * 0#3" , function ( ) {
229
+ assert . equal (
230
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
231
+ "Às 10:45, no terceiro domingo do mês"
232
+ ) ;
233
+ } ) ;
234
+
235
+ it ( "45 10 * * 1#3" , function ( ) {
236
+ assert . equal (
237
+ cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
238
+ "Às 10:45, na terceira segunda-feira do mês"
239
+ ) ;
240
+ } ) ;
198
241
} ) ;
199
242
200
243
describe ( "ro" , function ( ) {
0 commit comments