Skip to content

Commit d9a2c71

Browse files
committed
tests
2 parents 49feb14 + 621dc9b commit d9a2c71

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

test/languages/de.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
textualization={
2-
hello: "Hallo {firstname} {lastname}"
3-
};
1+
({
2+
hello: "Hallo {firstname} {lastname}"
3+
})

test/languages/en.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
textualization={
2-
sum: "The result of the operation {operation} is {result}",
3-
inbox: "You Have {mails} mensajes",
4-
hello: "Hi {firstname} {lastname}"
5-
};
1+
({
2+
sum: "The result of the operation {operation} is {result}",
3+
inbox: "You Have {mails} mensajes",
4+
hello: "Hi {firstname} {lastname}"
5+
})

test/languages/es.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
textualization={
2-
sum: "El resultado de tu operación {operation} es {result}",
3-
inbox: [
4-
"No tienes mensajes", //hello
5-
"Tienes un solo mensaje",
6-
"Tienes {$num} mensajes"
7-
],
8-
magic: "El texto {texto} al reves es: ·{params.texto.split('').reverse().join('')}·",
9-
hello: "Hola {firstname} {lastname}",
10-
func: function(){
11-
var square = param * param;
12-
return "El cuadrado de {param} es " + square;
13-
}
14-
};
1+
({
2+
sum: "El resultado de tu operación {operation} es {result}",
3+
inbox: [
4+
"No tienes mensajes", //hello
5+
"Tienes un solo mensaje",
6+
"Tienes {$num} mensajes"
7+
],
8+
magic: "El texto {texto} al reves es: ·{params.texto.split('').reverse().join('')}·",
9+
hello: "Hola {firstname} {lastname}",
10+
func: function(){
11+
var square = param * param;
12+
return "El cuadrado de {param} es " + square;
13+
}
14+
})

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ describe("Textualization -----",function(){
150150
lastname: "Simpson"
151151
};
152152

153-
console.log(i18n.heap);
153+
//console.log(i18n.heap);
154154

155155
test
156156
.value(i18n("i18nSampleLoad.hello",user,"de"))
157-
.is("i18nSampleLoad.hello")
157+
.is("Hallo Homer Simpson")
158158
})
159159

160160
})

0 commit comments

Comments
 (0)