Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package timeago |
||
2 | |||
3 | import ( |
||
4 | "testing" |
||
5 | ) |
||
6 | |||
7 | func TestParseJsonIntoLang(t *testing.T) { |
||
8 | t.Run("Function returns Lang model with needed values", func(test *testing.T) { |
||
9 | result := parseJsonIntoLang("langs/ru.json") |
||
10 | |||
11 | if result.Ago != "назад" { |
||
12 | t.Errorf("Function needs to return model with value назад, but returned %v", result.Ago) |
||
13 | } |
||
16 |