Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion website/tests/autoGainDoc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ describe("the auto-gain docs page", () => {
});

it("names the same target level as the auto-gain rule", () => {
const target = swift("Packages/ShowRecorderKit/Sources/AutoGain/AutoGainRule.swift").match(/targetDbfs: Double = (-?\d+)/)![1];
// The rule moved to ShowKit (#1294), which this repo doesn't hold as source, so its value is written here:
// `targetDbfs: Double = -18` in ShowKit's Sources/AutoGain/AutoGainRule.swift (ShowKit 0.2.0). Change both.
const target = "-18";
expect(page()).toContain(`${target} dBFS`);
});

Expand Down
4 changes: 2 additions & 2 deletions website/tests/channelArmingCopy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ describe("choosing which channels record", () => {
});

it("uses the app's own words for the menu and the header", () => {
const item = swift("Packages/ShowRecorderKit/Sources/Recording/ChannelArmMenuItem.swift");
// The menu item moved to ShowKit (#1296), which this repo doesn't hold as source, so its two names are written
// here: `accessibilityName` in ShowKit's Sources/Meters/ChannelArmMenuItem.swift (ShowKit 0.2.0). Change both.
for (const name of ["Don't arm channel", "Arm channel"]) {
expect(item).toContain(`"${name}"`);
expect(page()).toContain(`**${name} 5**`);
}
const state = swift("Packages/ShowRecorderKit/Sources/Recording/RecordScreenState.swift");
Expand Down
Loading