-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reorganize components and fix confusing index name
- Loading branch information
Showing
26 changed files
with
205 additions
and
51 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...dvoices/src/_tests_/AboutSection.test.tsx → ...onents/AboutSection/AboutSection.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...inger-with-oddvoices/src/AboutSection.tsx → ...ces/src/components/AboutSection/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...r-with-oddvoices/src/useGenerateAudio.tsx → ...s/src/components/App/useGenerateAudio.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
musicxml-singer-with-oddvoices/src/components/CopyIconButton/CopyIconButton.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it } from "vitest"; | ||
|
||
import { CopyIconButton } from "."; | ||
|
||
describe("CopyIconButton", () => { | ||
it("renders the CopyIconButton component", () => { | ||
render(<CopyIconButton text="test" />); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
musicxml-singer-with-oddvoices/src/components/MediaControls/MediaControls.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it } from "vitest"; | ||
|
||
import { MediaControls } from "."; | ||
|
||
describe("MediaControls", () => { | ||
it("renders the MediaControls component", () => { | ||
render(<MediaControls />); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
musicxml-singer-with-oddvoices/src/components/Part/Part.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it, vi } from "vitest"; | ||
|
||
import { Part } from "."; | ||
|
||
describe("Part", () => { | ||
it("renders the Part component", () => { | ||
render( | ||
<Part | ||
splitIndex={0} | ||
output={{ | ||
lyrics: "", | ||
events: [], | ||
}} | ||
splitParams={{ | ||
partIdx: 0, | ||
partName: "Soprano", | ||
voice: 1, | ||
chordLevel: 1, | ||
largestChordLvl: 1, | ||
numVoices: 1, | ||
}} | ||
lyricsEvents={[]} | ||
setOddVoiceOutputs={vi.fn()} | ||
setCustomVoicePerPart={vi.fn()} | ||
/> | ||
); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
musicxml-singer-with-oddvoices/src/components/Part/PartAudio.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it } from "vitest"; | ||
import { PartAudio } from "./PartAudio"; | ||
|
||
describe("PartAudio", () => { | ||
it("renders the PartAudio component with no audio and no lyrics events", () => { | ||
render(<PartAudio lyricsEvents={[]} />); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
4 changes: 2 additions & 2 deletions
4
...ger-with-oddvoices/src/Part/PartAudio.tsx → ...dvoices/src/components/Part/PartAudio.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
musicxml-singer-with-oddvoices/src/components/Part/PartDownloads.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it } from "vitest"; | ||
|
||
import { PartDownloads } from "./PartDownloads"; | ||
|
||
describe("PartDownloads", () => { | ||
it("renders the PartDownloads component", () => { | ||
render( | ||
<PartDownloads | ||
output={{ events: [], lyrics: "" }} | ||
splitParams={{ | ||
partIdx: 0, | ||
partName: "Soprano", | ||
voice: 1, | ||
numVoices: 1, | ||
chordLevel: 1, | ||
largestChordLvl: 1, | ||
}} | ||
/> | ||
); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
musicxml-singer-with-oddvoices/src/components/Part/PartLyrics.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it, vi } from "vitest"; | ||
|
||
import { PartLyrics } from "./PartLyrics"; | ||
|
||
describe("PartLyrics", () => { | ||
it("renders the PartLyrics component", () => { | ||
render( | ||
<PartLyrics | ||
splitIndex={0} | ||
output={{ | ||
lyrics: "", | ||
events: [], | ||
}} | ||
setOddVoiceOutputs={vi.fn()} | ||
/> | ||
); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
musicxml-singer-with-oddvoices/src/components/Part/VoiceSelect.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { render } from "@testing-library/react"; | ||
import { describe, it, vi } from "vitest"; | ||
import { VoiceSelect } from "./VoiceSelect"; | ||
import { Voice } from "../../oddvoices/oddvoicesUtils"; | ||
|
||
describe("VoiceSelect", () => { | ||
it("renders the VoiceSelect component", () => { | ||
render(<VoiceSelect splitIndex={0} setCustomVoicePerPart={vi.fn()} customVoiceForPart={Voice.air} />); | ||
|
||
// screen.debug(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.