Skip to content

Commit 1a3cf58

Browse files
cursoragentyamanoku
andcommitted
test: assert うしろのこ and ushironoko stay unified
Guard against reintroducing a separate ushironoko speaker entry that would split DirectoryView aggregation again. Co-authored-by: Oyama Michinoku <0910yama@gmail.com>
1 parent f26aba8 commit 1a3cf58

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/data/index.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, expect, it } from "vite-plus/test";
22
import { YEARS } from "../../types";
3+
import { getSpeakerNames, getSpeakerTalks } from "../composables/speaker";
34
import { getAllSpeakersWithYear, getSpeakersByYear } from "./index";
45

56
describe("speaker data accessors", () => {
@@ -16,4 +17,13 @@ describe("speaker data accessors", () => {
1617
expect(speakers.length).toBeGreaterThan(0);
1718
expect(speakers.every((speaker) => YEARS.includes(speaker.year))).toBe(true);
1819
});
20+
21+
it("うしろのこは ushironoko と同一人物として集約される", () => {
22+
const talks = getSpeakerTalks("うしろのこ");
23+
const years = talks.map((talk) => talk.year);
24+
25+
expect(years).toEqual(expect.arrayContaining(["2022", "2023", "2026"]));
26+
expect(getSpeakerNames()).not.toContain("ushironoko");
27+
expect(getSpeakerTalks("ushironoko")).toEqual([]);
28+
});
1929
});

0 commit comments

Comments
 (0)