Skip to content

Commit

Permalink
release: 20231110 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunosukeY authored Nov 10, 2023
1 parent 33427e9 commit 1dc5408
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Releases/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ const OldReleases: FCWithChildren = ({ children }) => {
};

const ReleaseArray: React.ReactNode[] = [
<>
<Date date='2023/11/10' />
<AddData />
<AddVideo videoId={192} />
<AddVideo videoId={193} />
<AddVideo videoId={194} />
</>,
<>
<Date date='2023/10/20' />
<AddData />
Expand Down
6 changes: 6 additions & 0 deletions src/data/data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ describe('data consistency', () => {
test('artists.name', () => {
data.artists.forEach((a) => {
const same = data.artists.filter((a2) => a2.name === a.name);
if (same.length > 1) console.log(a);
expect(same).toHaveLength(1);
});
});

test('songs.title', () => {
data.songs.forEach((s) => {
const same = data.songs.filter((s2) => s2.title === s.title);
if (same.length > 1) console.log(s);
expect(same).toHaveLength(1);
});
});
Expand All @@ -27,6 +29,7 @@ describe('data consistency', () => {
test('types.name -> videos.type', () => {
data.videos.forEach((v) => {
const ref = data.types.find((t) => t.name === v.type);
if (ref === undefined) console.log(v);
expect(ref).not.toBeUndefined();
});
});
Expand All @@ -35,20 +38,23 @@ describe('data consistency', () => {
data.songs.forEach((s) => {
if (!s.artist) return;
const ref = data.artists.find((a) => a.name === s.artist);
if (ref === undefined) console.log(s);
expect(ref).not.toBeUndefined();
});
});

test('videos.title -> singings.video', () => {
data.singings.forEach((s) => {
const ref = data.videos.find((v) => v.title === s.video);
if (ref === undefined) console.log(s);
expect(ref).not.toBeUndefined();
});
});

test('songs.title -> singings.song', () => {
data.singings.forEach((s) => {
const ref = data.songs.find((song) => song.title === s.song);
if (ref === undefined) console.log(s);
expect(ref).not.toBeUndefined();
});
});
Expand Down

1 comment on commit 1dc5408

@vercel
Copy link

@vercel vercel bot commented on 1dc5408 Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.