Skip to content

Commit

Permalink
frontend: remove unnecessary any types in i18n config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thisconnect committed Nov 15, 2024
1 parent 796cf32 commit 4122f84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontends/web/src/i18n/config.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { languageFromConfig } from './config';
describe('language detector', () => {
it('defaults to english', () => new Promise<void>(done => {
(apiGet as Mock).mockResolvedValue({});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('en');
done();
});
Expand All @@ -43,7 +43,7 @@ describe('language detector', () => {
default: { return Promise.resolve(); }
}
});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('it');
done();
});
Expand All @@ -57,7 +57,7 @@ describe('language detector', () => {
default: { return Promise.resolve(); }
}
});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('de');
done();
});
Expand All @@ -71,7 +71,7 @@ describe('language detector', () => {
default: { return Promise.resolve(); }
}
});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('en');
done();
});
Expand All @@ -85,7 +85,7 @@ describe('language detector', () => {
default: { return Promise.resolve(); }
}
});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('de');
done();
});
Expand All @@ -99,7 +99,7 @@ describe('language detector', () => {
default: { return Promise.resolve(); }
}
});
languageFromConfig.detect((lang: any) => {
languageFromConfig.detect((lang) => {
expect(lang).toEqual('pt-BR');
done();
});
Expand Down

0 comments on commit 4122f84

Please sign in to comment.