From 087068d545eb91f2a8009fb1ce524fc2b670f382 Mon Sep 17 00:00:00 2001 From: Erik Golinelli Date: Sun, 17 Dec 2023 12:34:58 +0100 Subject: [PATCH] 100% coverage tests --- tests/asKey.test.ts | 2 +- tests/format.test.ts | 2 +- tests/getAll.test.ts | 2 +- tests/getAllLanguageCodesByISO.test.ts | 2 +- tests/getAllLanguagesByISO.test.ts | 2 +- tests/getCountriesByLanguage.test.ts | 2 +- tests/getCountry.test.ts | 2 +- tests/getCountryData.test.ts | 2 +- tests/getCountryIso.test.ts | 2 +- tests/getKeyValue .test.ts | 2 +- tests/isValid.test.ts | 2 +- tests/iso.test.ts | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/asKey.test.ts b/tests/asKey.test.ts index e3a068f..9595922 100644 --- a/tests/asKey.test.ts +++ b/tests/asKey.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getAsKey } from '../src/ISOToLanguage' +import { getAsKey } from '../src/' describe('getAsKey', () => { describe('getAsKey', () => { diff --git a/tests/format.test.ts b/tests/format.test.ts index 2d11ba3..b251f65 100644 --- a/tests/format.test.ts +++ b/tests/format.test.ts @@ -1,4 +1,4 @@ -import { format } from '../src/ISOToLanguage' +import { format } from '../src/' describe('format', () => { it('should format the language and country into a single string with default options', () => { diff --git a/tests/getAll.test.ts b/tests/getAll.test.ts index 4c4fdce..9d79581 100644 --- a/tests/getAll.test.ts +++ b/tests/getAll.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getAll } from '../src/ISOToLanguage' +import { getAll } from '../src/' import { isoList } from '../src/iso' describe('getAll', () => { diff --git a/tests/getAllLanguageCodesByISO.test.ts b/tests/getAllLanguageCodesByISO.test.ts index 9afe656..d04f538 100644 --- a/tests/getAllLanguageCodesByISO.test.ts +++ b/tests/getAllLanguageCodesByISO.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getAllLanguagesByISO } from '../src/ISOToLanguage' +import { getAllLanguagesByISO } from '../src/' import { isoList } from '../src/iso' describe('getAllLanguagesByISO', () => { diff --git a/tests/getAllLanguagesByISO.test.ts b/tests/getAllLanguagesByISO.test.ts index da79198..7d633ee 100644 --- a/tests/getAllLanguagesByISO.test.ts +++ b/tests/getAllLanguagesByISO.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getAllLanguageCodesByISO } from '../src/ISOToLanguage' +import { getAllLanguageCodesByISO } from '../src/' import { isoList } from '../src/iso' describe('getAllLanguageCodesByISO', () => { diff --git a/tests/getCountriesByLanguage.test.ts b/tests/getCountriesByLanguage.test.ts index df58df1..3078cad 100644 --- a/tests/getCountriesByLanguage.test.ts +++ b/tests/getCountriesByLanguage.test.ts @@ -1,4 +1,4 @@ -import { getCountriesByLanguage } from '../src/ISOToLanguage' +import { getCountriesByLanguage } from '../src/' describe('getCountriesByLanguage', () => { it('should return an array of countries that speak the given languages', () => { diff --git a/tests/getCountry.test.ts b/tests/getCountry.test.ts index aa74982..2c91595 100644 --- a/tests/getCountry.test.ts +++ b/tests/getCountry.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getCountry } from '../src/ISOToLanguage' +import { getCountry } from '../src/' describe('ISOToLanguage', () => { describe('getCountry', () => { diff --git a/tests/getCountryData.test.ts b/tests/getCountryData.test.ts index e9a4693..9e3cb59 100644 --- a/tests/getCountryData.test.ts +++ b/tests/getCountryData.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getCountryData } from '../src/ISOToLanguage' +import { getCountryData } from '../src/' describe('ISOToLanguage', () => { it('should return the country data for a valid language code', () => { diff --git a/tests/getCountryIso.test.ts b/tests/getCountryIso.test.ts index 075fa7a..1c435b9 100644 --- a/tests/getCountryIso.test.ts +++ b/tests/getCountryIso.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { getCountriesByISO } from '../src/ISOToLanguage' +import { getCountriesByISO } from '../src/' describe('getCountriesByISO', () => { it('should return an object of country data for valid ISO codes', () => { diff --git a/tests/getKeyValue .test.ts b/tests/getKeyValue .test.ts index 01aa1d4..a90c6c6 100644 --- a/tests/getKeyValue .test.ts +++ b/tests/getKeyValue .test.ts @@ -1,5 +1,5 @@ import { describe, expect, test } from '@jest/globals'; -import { getKeyValue } from '../src/ISOToLanguage'; +import { getKeyValue } from '../src/'; import { IsoDataType } from '../src/type' describe('getKeyValue', () => { diff --git a/tests/isValid.test.ts b/tests/isValid.test.ts index ae2a808..cffce71 100644 --- a/tests/isValid.test.ts +++ b/tests/isValid.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { isValidIso } from '../src/ISOToLanguage' +import { isValidIso } from '../src/' describe('ISOToLanguage', () => { describe('isValidISO', () => { diff --git a/tests/iso.test.ts b/tests/iso.test.ts index 89410a2..cc51e8c 100644 --- a/tests/iso.test.ts +++ b/tests/iso.test.ts @@ -1,5 +1,5 @@ import { describe, expect } from '@jest/globals' -import { ISO } from '../src/ISOToLanguage' +import { ISO } from '../src/' import { isoList } from '../src/iso' describe('get', () => {