File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { describe , expect , it } from "vite-plus/test" ;
22import { YEARS } from "../../types" ;
3- import { getSpeakerNames , getSpeakerTalks } from "../composables/speaker" ;
43import { getAllSpeakersWithYear , getSpeakersByYear } from "./index" ;
54
65describe ( "speaker data accessors" , ( ) => {
@@ -17,13 +16,4 @@ describe("speaker data accessors", () => {
1716 expect ( speakers . length ) . toBeGreaterThan ( 0 ) ;
1817 expect ( speakers . every ( ( speaker ) => YEARS . includes ( speaker . year ) ) ) . toBe ( true ) ;
1918 } ) ;
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- } ) ;
2919} ) ;
You can’t perform that action at this time.
0 commit comments