Skip to content

Commit

Permalink
100% coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Dec 17, 2023
1 parent c09c6df commit 087068d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/asKey.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect } from '@jest/globals'
import { getAsKey } from '../src/ISOToLanguage'
import { getAsKey } from '../src/'

describe('getAsKey', () => {
describe('getAsKey', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/format.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getAll.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getAllLanguageCodesByISO.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getAllLanguagesByISO.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getCountriesByLanguage.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getCountry.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect } from '@jest/globals'
import { getCountry } from '../src/ISOToLanguage'
import { getCountry } from '../src/'

describe('ISOToLanguage', () => {
describe('getCountry', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getCountryData.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getCountryIso.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/getKeyValue .test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/isValid.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect } from '@jest/globals'
import { isValidIso } from '../src/ISOToLanguage'
import { isValidIso } from '../src/'

describe('ISOToLanguage', () => {
describe('isValidISO', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/iso.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down

0 comments on commit 087068d

Please sign in to comment.