Skip to content

Commit 39df31d

Browse files
authored
fix: rename references to electron-quick-start repo (#1758)
* fix: rename references to electron-quick-start repo * test: update URL
1 parent 2ee751a commit 39df31d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/content.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ const TEST_TEMPLATE_BRANCH = 'test-template';
2121

2222
/**
2323
* Ensure we have a fiddle for the specified Electron branch.
24-
* If we don't have it already, download it from electron-quick-start.
24+
* If we don't have it already, download it from the minimal-repro
25+
* repository.
2526
*
2627
* @param branch - Electron branchname, e.g. `12-x-y` or `main`
2728
* @returns Path to the folder where the fiddle is kept
2829
*/
2930
async function prepareTemplate(branch: string): Promise<string> {
30-
let folder = path.join(TEMPLATES_DIR, `electron-quick-start-${branch}`);
31+
let folder = path.join(TEMPLATES_DIR, `minimal-repro-${branch}`);
3132

3233
try {
3334
// if we don't have it, download it
3435
if (!fs.existsSync(folder)) {
3536
console.log(`Content: ${branch} downloading template`);
36-
const url = `https://github.com/electron/electron-quick-start/archive/${branch}.zip`;
37+
const url = `https://github.com/electron/minimal-repro/archive/${branch}.zip`;
3738
const response = await fetch(url);
3839
if (!response.ok) {
3940
throw new Error(`${url} ${response.status} ${response.statusText}`);

tests/main/content-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('content', () => {
9797
await getTestTemplate();
9898
expect(fetch).toHaveBeenCalledTimes(1);
9999
expect(fetch).toHaveBeenLastCalledWith(
100-
'https://github.com/electron/electron-quick-start/archive/test-template.zip',
100+
'https://github.com/electron/minimal-repro/archive/test-template.zip',
101101
);
102102
});
103103
});

0 commit comments

Comments
 (0)