Skip to content

Commit 85c054b

Browse files
committed
Ajuste de lint
1 parent 84d01d1 commit 85c054b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/ui/src/lib/services/po-i18n/po-i18n.service.spec.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PoI18nConfig } from './interfaces/po-i18n-config.interface';
66

77
describe('mergePoI18nConfigs', () => {
88
it('should prioritize the last defined default.language in the array', () => {
9-
const input: PoI18nConfig[] = [
9+
const input: Array<PoI18nConfig> = [
1010
{ default: { language: 'pt-BR', context: 'general', cache: true }, contexts: {} },
1111
{ default: { context: 'general', cache: true }, contexts: {} },
1212
{ default: { language: 'en-US', context: 'general', cache: true }, contexts: {} }
@@ -18,7 +18,7 @@ describe('mergePoI18nConfigs', () => {
1818
});
1919

2020
it('should fallback to last default if no default.language is defined', () => {
21-
const input: PoI18nConfig[] = [
21+
const input: Array<PoI18nConfig> = [
2222
{ default: { context: 'general', cache: true }, contexts: {} },
2323
{ default: { cache: true }, contexts: {} },
2424
{ default: { context: 'another-context', cache: false }, contexts: {} }
@@ -31,7 +31,7 @@ describe('mergePoI18nConfigs', () => {
3131
});
3232

3333
it('should correctly merge contexts and translations', () => {
34-
const input: PoI18nConfig[] = [
34+
const input: Array<PoI18nConfig> = [
3535
{
3636
default: { language: 'pt-BR', context: 'general', cache: true },
3737
contexts: {
@@ -76,7 +76,7 @@ describe('mergePoI18nConfigs', () => {
7676
});
7777

7878
it('should handle null or undefined contexts gracefully', () => {
79-
const input: PoI18nConfig[] = [
79+
const input: Array<PoI18nConfig> = [
8080
{ default: { language: 'pt-BR', context: 'general', cache: true }, contexts: null },
8181
{ default: { language: 'en-US', context: 'general', cache: true }, contexts: undefined },
8282
{
@@ -103,7 +103,7 @@ describe('mergePoI18nConfigs', () => {
103103
});
104104

105105
it('should apply default fallback if none of the configs have default', () => {
106-
const input: PoI18nConfig[] = [
106+
const input: Array<PoI18nConfig> = [
107107
{ contexts: { home: { 'pt-BR': { test: 'Teste' } } } },
108108
{ contexts: { about: { 'en-US': { info: 'Info' } } } }
109109
];

0 commit comments

Comments
 (0)