11import "mocha" ;
22import cronstrue from "../src/cronstrue-i18n" ;
3- import chai = require( "chai" ) ;
4- let assert = chai . assert ;
3+ import { assert } from "chai" ;
54
65describe ( "i18n" , function ( ) {
76 describe ( "de" , function ( ) {
@@ -204,7 +203,6 @@ describe("i18n", function () {
204203 } ) ;
205204 } ) ;
206205
207-
208206 describe ( "pt_PT" , function ( ) {
209207 it ( "* * * * *" , function ( ) {
210208 assert . equal ( cronstrue . toString ( this . test ?. title as string , { locale : "pt_PT" } ) , "A cada minuto" ) ;
@@ -217,7 +215,6 @@ describe("i18n", function () {
217215 ) ;
218216 } ) ;
219217
220-
221218 it ( "45 10 * * 6#2" , function ( ) {
222219 assert . equal (
223220 cronstrue . toString ( this . test ?. title as string , { locale : "pt_BR" } ) ,
@@ -351,10 +348,7 @@ describe("i18n", function () {
351348 } ) ;
352349
353350 it ( "0 3 * * 4" , function ( ) {
354- assert . equal (
355- cronstrue . toString ( this . test ?. title as string , { locale : "da" } ) ,
356- "Kl 03:00, på enhver torsdag"
357- ) ;
351+ assert . equal ( cronstrue . toString ( this . test ?. title as string , { locale : "da" } ) , "Kl 03:00, på enhver torsdag" ) ;
358352 } ) ;
359353
360354 it ( "0 3 * * 4,5" , function ( ) {
@@ -534,7 +528,6 @@ describe("i18n", function () {
534528 "Pada 07:00, hanya pada Isnin, Selasa, Khamis, Jumaat, dan Ahad"
535529 ) ;
536530 } ) ;
537-
538531 } ) ;
539532
540533 describe ( "bg" , function ( ) {
@@ -545,7 +538,10 @@ describe("i18n", function () {
545538 assert . equal ( cronstrue . toString ( this . test ?. title as string , { locale : "bg" } ) , "Всеки час" ) ;
546539 } ) ;
547540 it ( "*/5 15 * * MON-FRI" , function ( ) {
548- assert . equal ( cronstrue . toString ( this . test ?. title as string , { locale : "bg" } ) , "Всеки 5 минути, от 15:00 до 15:59, от понеделник до петък" ) ;
541+ assert . equal (
542+ cronstrue . toString ( this . test ?. title as string , { locale : "bg" } ) ,
543+ "Всеки 5 минути, от 15:00 до 15:59, от понеделник до петък"
544+ ) ;
549545 } ) ;
550546 } ) ;
551547
@@ -579,7 +575,7 @@ describe("i18n", function () {
579575 } ) ;
580576 } ) ;
581577
582- describe ( "sr" , function ( ) {
578+ describe ( "sr" , function ( ) {
583579 it ( "* * * * *" , function ( ) {
584580 assert . equal ( cronstrue . toString ( this . test ?. title as string , { locale : "sr" } ) , "Svakog minuta" ) ;
585581 } ) ;
@@ -595,6 +591,4 @@ describe("i18n", function () {
595591 ) ;
596592 } ) ;
597593 } ) ;
598-
599-
600594} ) ;
0 commit comments