This commit is contained in:
huqi 2020-11-29 13:12:03 +08:00
parent 31584f87f4
commit 2a2db1ff24
4 changed files with 14 additions and 14 deletions

View File

@ -1,24 +1,24 @@
#!/usr/bin/env -S deno run --unstable --allow-net --allow-read --allow-write --import-map=import_map.json
import { assertEquals, assertStringIncludes } from "std/testing/asserts.ts";
import type { Question, SearchWord, Word, ToutiaoWord } from "./types.ts";
import type { Question, SearchWord, ToutiaoWord, Word } from "./types.ts";
import {
createArchive,
createTuotiaoList,
createArchive4Toutiao,
createArchive4Weibo,
createArchive4Search,
createQuestionList,
createReadme,
createReadme4Toutiao,
createReadme4Weibo,
createReadme4Search,
createSearchList,
createTuotiaoList,
createWeiboList,
mergeWords,
mergeQuestions,
mergeWords4Toutiao,
mergeWords4Weibo,
createWeiboList,
createQuestionList,
createReadme4Toutiao,
createArchive4Toutiao,
createArchive4Weibo,
createReadme4Weibo,
createReadme4Search,
createArchive4Search,
createSearchList,
} from "./utils.ts";
Deno.test("mergeWords4Toutiao", function (): void {

View File

@ -1,4 +1,4 @@
import type { Question, SearchWord, Word, ToutiaoWord } from "./types.ts";
import type { Question, SearchWord, ToutiaoWord, Word } from "./types.ts";
/** 合并两次热门话题并根据 id 去重 */
export function mergeQuestions(

View File

@ -5,7 +5,7 @@ import { join } from "std/path/mod.ts";
import { exists } from "std/fs/mod.ts";
// import { config } from 'dotenv/mod.ts'
import type { ZhihuQuestionList, Question } from "./types.ts";
import type { Question, ZhihuQuestionList } from "./types.ts";
import { createArchive, createReadme, mergeQuestions } from "./utils.ts";
const response = await fetch(

View File

@ -4,7 +4,7 @@ import { format } from "std/datetime/mod.ts";
import { join } from "std/path/mod.ts";
import { exists } from "std/fs/mod.ts";
import type { ZhihuVideoList, Question } from "./types.ts";
import type { Question, ZhihuVideoList } from "./types.ts";
import { createArchive, createReadme, mergeQuestions } from "./utils.ts";
const response = await fetch(