Skip to content

Commit

Permalink
refactor: audit code
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-cybo committed May 14, 2024
1 parent fb9cbef commit f4a6681
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/create-plugin/__e2e__/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ import {
readPluginManifestJson,
} from "./utils/verification";
import { getBoundMessage } from "../src/messages";
import { pattern as requiredOptions } from "./fixtures/requiredOptions";
import { pattern as pluginNameContain64Chars } from "./fixtures/pluginNameContain64Chars";
import { pattern as pluginDescriptionContain200Chars } from "./fixtures/pluginDescriptionContain200Chars";
import { pattern as allOptions } from "./fixtures/allOptions";
import { pattern as languageEN } from "./fixtures/languageEN";
import { pattern as languageJA } from "./fixtures/languageJA";
import { pattern as emptyOutputDir } from "./fixtures/emptyOutputDir";
import { pattern as pluginNameContain65Chars } from "./fixtures/pluginNameContain65Chars";
import { pattern as pluginDescriptionContain201Chars } from "./fixtures/pluginDescriptionContain201Chars";
import { pattern as existOutputDir } from "./fixtures/existOutputDir";
import { pattern as createKintonePluginCommand } from "./fixtures/createKintonePluginCommand";
import { pattern as minimumTemplate } from "./fixtures/minimumTemplate";
import { pattern as modernTemplate } from "./fixtures/modernTemplate";
import { CreatePlugin } from "./utils/CreatePlugin";
import {
requiredOptions,
pluginNameContain64Chars,
pluginDescriptionContain200Chars,
allOptions,
languageEN,
languageJA,
emptyOutputDir,
pluginNameContain65Chars,
pluginDescriptionContain201Chars,
existOutputDir,
createKintonePluginCommand,
minimumTemplate,
modernTemplate,
} from "./fixtures";

export type TestPattern = {
description: string;
Expand Down
13 changes: 13 additions & 0 deletions packages/create-plugin/__e2e__/fixtures/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export { pattern as requiredOptions } from "./requiredOptions";
export { pattern as pluginNameContain64Chars } from "./pluginNameContain64Chars";
export { pattern as pluginDescriptionContain200Chars } from "./pluginDescriptionContain200Chars";
export { pattern as allOptions } from "./allOptions";
export { pattern as languageEN } from "./languageEN";
export { pattern as languageJA } from "./languageJA";
export { pattern as emptyOutputDir } from "./emptyOutputDir";
export { pattern as pluginNameContain65Chars } from "./pluginNameContain65Chars";
export { pattern as pluginDescriptionContain201Chars } from "./pluginDescriptionContain201Chars";
export { pattern as existOutputDir } from "./existOutputDir";
export { pattern as createKintonePluginCommand } from "./createKintonePluginCommand";
export { pattern as minimumTemplate } from "./minimumTemplate";
export { pattern as modernTemplate } from "./modernTemplate";

0 comments on commit f4a6681

Please sign in to comment.