From 7d62c9226a0d4fba5f089fb5c6fb7b924493e421 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Fri, 3 Jun 2022 22:38:17 +0800 Subject: [PATCH] test: fix test --- packages/feed/src/node/utils.ts | 2 +- .../{feed/__tests__ => shared/__tests__/unit}/utils.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/{feed/__tests__ => shared/__tests__/unit}/utils.spec.ts (88%) diff --git a/packages/feed/src/node/utils.ts b/packages/feed/src/node/utils.ts index 6c6eb509b..5ba2c42e9 100644 --- a/packages/feed/src/node/utils.ts +++ b/packages/feed/src/node/utils.ts @@ -63,4 +63,4 @@ export const getImageMineType = (ext = ""): string => : "" }`; -export const FEED_GENERATOR = "vuepress-plugin-feed2"; +export const FEED_GENERATOR = "vuepress-plugin-feed1"; diff --git a/packages/feed/__tests__/utils.spec.ts b/packages/shared/__tests__/unit/utils.spec.ts similarity index 88% rename from packages/feed/__tests__/utils.spec.ts rename to packages/shared/__tests__/unit/utils.spec.ts index 2bad38863..298242b5f 100644 --- a/packages/feed/__tests__/utils.spec.ts +++ b/packages/shared/__tests__/unit/utils.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vitest"; -import { encodeXML } from "../src/node/utils"; +import { encodeXML } from "../../src/node"; describe("Encode XML", () => { it("should encode", () => {