Skip to content

Commit

Permalink
Merge pull request #56 from jy95/refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
jy95 authored May 2, 2024
2 parents d316101 + 109ae28 commit 9c9fe75
Show file tree
Hide file tree
Showing 79 changed files with 226 additions and 469 deletions.
1 change: 0 additions & 1 deletion __tests__/api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("API scenarios", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/corner_cases.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("Corner cases", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/additionalInstruction.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - additionalInstruction", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/asNeeded.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage as DosageR4 } from "fhir/r4";
import type { Dosage as DosageR5 } from "fhir/r5";

Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/boundsDuration.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - boundsDuration", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/boundsPeriod.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

// For the WHY, consult this
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/boundsRange.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - boundsRange", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/code.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - code", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/countCountMax.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - countCountMax", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/dayOfWeek.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - dayOfWeek", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/doseQuantity.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - doseQuantity", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/doseRange.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - doseRange", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/durationDurationMax.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - durationDurationMax", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/event.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function decodeHtmlEntities(text: string): string {
});
}

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - event", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/extension.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - extension", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/frequencyFrequencyMax.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - frequencyFrequencyMax", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - frequencyFrequencyMaxPeriodPeriodMax", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - maxDosePerAdministration", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/maxDosePerLifetime.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - maxDosePerLifetime", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/maxDosePerPeriod.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage as DosageR4 } from "fhir/r4";
import type { Dosage as DosageR5 } from "fhir/r5";

Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/method.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - method", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/modifierExtension.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - modifierExtension", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/offsetWhen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - offsetWhen", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/patientInstruction.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - patientInstruction", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/periodPeriodMax.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - periodPeriodMax", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/rateQuantity.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - rateQuantity", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/rateRange.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - rateRange", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/rateRatio.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - rateRatio", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/route.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - route", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/site.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - site", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/text.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - text", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/timeOfDay.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - timeOfDay", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/timingExtension.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - timingExtension", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - timingModifierExtension", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromDosageToText/timingRepeatExtension.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromDosageToText - timingRepeatExtension", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/fromMultipleDosageToText.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../src/index";

// types
import type { Dosage } from "fhir/r4";

describe("fromMultipleDosageToText", () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/timing.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { expect, test, describe } from "@jest/globals";
import FhirDosageUtils from "../src/index";

// types
import type { Dosage } from "fhir/r4";

// For the WHY, consult this
Expand Down
1 change: 0 additions & 1 deletion src/@types/i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "i18next";
import { resources, defaultNS } from "../i18n";

declare module "i18next" {
// Extend CustomTypeOptions
interface CustomTypeOptions {
defaultNS: typeof defaultNS;
resources: (typeof resources)["en"];
Expand Down
Loading

0 comments on commit 9c9fe75

Please sign in to comment.