Skip to content

Commit 034a0e0

Browse files
committed
fix typo
1 parent 08163f7 commit 034a0e0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/react-router-devtools/src/vite/utils/data-functions-augment.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -743,15 +743,15 @@ describe("aliased import transforms", () => {
743743
it("should transform aliased action import where local name is action", () => {
744744
const result = augmentDataFetchingFunctions(
745745
`
746-
import { myLoaderyAction as action } from "./actions";
746+
import { myLoaderAction as action } from "./actions";
747747
export { action };
748748
`,
749749
"test",
750750
"/file/path"
751751
)
752752
const expected = removeWhitespace(`
753753
import { withActionWrapper as _withActionWrapper } from "react-router-devtools/server";
754-
import { myLoaderyAction as _action } from "./actions";
754+
import { myLoaderAction as _action } from "./actions";
755755
export const action = _withActionWrapper(_action, "test");
756756
`)
757757
expect(removeWhitespace(result.code)).toStrictEqual(expected)
@@ -760,15 +760,15 @@ describe("aliased import transforms", () => {
760760
it("should transform aliased clientLoader import where local name is clientLoader", () => {
761761
const result = augmentDataFetchingFunctions(
762762
`
763-
import { myLoaderyClientLoader as clientLoader } from "./loaders";
763+
import { myLoaderClientLoader as clientLoader } from "./loaders";
764764
export { clientLoader };
765765
`,
766766
"test",
767767
"/file/path"
768768
)
769769
const expected = removeWhitespace(`
770770
import { withClientLoaderWrapper as _withClientLoaderWrapper } from "react-router-devtools/client";
771-
import { myLoaderyClientLoader as _clientLoader } from "./loaders";
771+
import { myLoaderClientLoader as _clientLoader } from "./loaders";
772772
export const clientLoader = _withClientLoaderWrapper(_clientLoader, "test");
773773
`)
774774
expect(removeWhitespace(result.code)).toStrictEqual(expected)
@@ -777,15 +777,15 @@ describe("aliased import transforms", () => {
777777
it("should transform aliased clientAction import where local name is clientAction", () => {
778778
const result = augmentDataFetchingFunctions(
779779
`
780-
import { myLoaderyClientAction as clientAction } from "./actions";
780+
import { myLoaderClientAction as clientAction } from "./actions";
781781
export { clientAction };
782782
`,
783783
"test",
784784
"/file/path"
785785
)
786786
const expected = removeWhitespace(`
787787
import { withClientActionWrapper as _withClientActionWrapper } from "react-router-devtools/client";
788-
import { myLoaderyClientAction as _clientAction } from "./actions";
788+
import { myLoaderClientAction as _clientAction } from "./actions";
789789
export const clientAction = _withClientActionWrapper(_clientAction, "test");
790790
`)
791791
expect(removeWhitespace(result.code)).toStrictEqual(expected)

packages/react-router-devtools/src/vite/utils/inject-context.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,15 @@ describe("aliased import transforms", () => {
643643
it("should transform aliased action import where local name is action", () => {
644644
const result = injectContext(
645645
`
646-
import { myLoaderyAction as action } from "./actions";
646+
import { myLoaderAction as action } from "./actions";
647647
export { action };
648648
`,
649649
"test",
650650
"/file/path"
651651
)
652652
const expected = removeWhitespace(`
653653
import { withActionContextWrapper as _withActionContextWrapper } from "react-router-devtools/context";
654-
import { myLoaderyAction as _action } from "./actions";
654+
import { myLoaderAction as _action } from "./actions";
655655
export const action = _withActionContextWrapper(_action, "test");
656656
`)
657657
expect(removeWhitespace(result.code)).toStrictEqual(expected)
@@ -660,15 +660,15 @@ describe("aliased import transforms", () => {
660660
it("should transform aliased clientLoader import where local name is clientLoader", () => {
661661
const result = injectContext(
662662
`
663-
import { myLoaderyClientLoader as clientLoader } from "./loaders";
663+
import { myLoaderClientLoader as clientLoader } from "./loaders";
664664
export { clientLoader };
665665
`,
666666
"test",
667667
"/file/path"
668668
)
669669
const expected = removeWhitespace(`
670670
import { withClientLoaderContextWrapper as _withClientLoaderContextWrapper } from "react-router-devtools/context";
671-
import { myLoaderyClientLoader as _clientLoader } from "./loaders";
671+
import { myLoaderClientLoader as _clientLoader } from "./loaders";
672672
export const clientLoader = _withClientLoaderContextWrapper(_clientLoader, "test");
673673
`)
674674
expect(removeWhitespace(result.code)).toStrictEqual(expected)
@@ -677,15 +677,15 @@ describe("aliased import transforms", () => {
677677
it("should transform aliased clientAction import where local name is clientAction", () => {
678678
const result = injectContext(
679679
`
680-
import { myLoaderyClientAction as clientAction } from "./actions";
680+
import { myLoaderClientAction as clientAction } from "./actions";
681681
export { clientAction };
682682
`,
683683
"test",
684684
"/file/path"
685685
)
686686
const expected = removeWhitespace(`
687687
import { withClientActionContextWrapper as _withClientActionContextWrapper } from "react-router-devtools/context";
688-
import { myLoaderyClientAction as _clientAction } from "./actions";
688+
import { myLoaderClientAction as _clientAction } from "./actions";
689689
export const clientAction = _withClientActionContextWrapper(_clientAction, "test");
690690
`)
691691
expect(removeWhitespace(result.code)).toStrictEqual(expected)

0 commit comments

Comments
 (0)