From 4d82d8e7a4f5f0d33bbe5e9ea63f00ce93cd6606 Mon Sep 17 00:00:00 2001 From: Antoine Ceol Date: Fri, 29 Sep 2023 12:41:43 +0200 Subject: [PATCH] :wrench: Update config.js path it has been moved by https://github.com/1024pix/pix/pull/7140 --- common/services/github.js | 2 +- test/acceptance/build/slack_test.js | 4 +++- test/test-helper.js | 4 ++-- test/unit/build/services/github_test.js | 8 ++++---- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/common/services/github.js b/common/services/github.js index d57f6c68..069e726a 100644 --- a/common/services/github.js +++ b/common/services/github.js @@ -269,7 +269,7 @@ async function _getCommitsWhereConfigFileHasChangedBetweenDate(repoOwner, repoNa repo: repoName, since: sinceDate, until: untilDate, - path: 'api/lib/config.js', + path: 'api/src/shared/config.js', }); return data; diff --git a/test/acceptance/build/slack_test.js b/test/acceptance/build/slack_test.js index 8d4d8d25..dfb8925b 100644 --- a/test/acceptance/build/slack_test.js +++ b/test/acceptance/build/slack_test.js @@ -225,7 +225,9 @@ describe('Acceptance | Build | Slack', function () { /since=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z&until=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z/g, 'since=XXXX&until=XXXX', ) - .get('/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Flib%2Fconfig.js') + .get( + '/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Fsrc%2Fshared%2Fconfig.js', + ) .reply(200, [ { sha: '6dcb09', diff --git a/test/test-helper.js b/test/test-helper.js index 22f13330..3708ede1 100644 --- a/test/test-helper.js +++ b/test/test-helper.js @@ -96,7 +96,7 @@ function nockGithubWithNoConfigChanges() { /since=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z&until=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z/g, 'since=XXXX&until=XXXX', ) - .get('/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Flib%2Fconfig.js') + .get('/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Fsrc%2Fshared%2Fconfig.js') .reply(200, []); const nocks = { tags, commit1234, commit456, commits }; @@ -152,7 +152,7 @@ function nockGithubWithConfigChanges() { /since=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z&until=\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}.\d{3}Z/g, 'since=XXXX&until=XXXX', ) - .get('/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Flib%2Fconfig.js') + .get('/repos/github-owner/github-repository/commits?since=XXXX&until=XXXX&path=api%2Fsrc%2Fshared%2Fconfig.js') .reply(200, [{}]); } diff --git a/test/unit/build/services/github_test.js b/test/unit/build/services/github_test.js index 790e3201..a368f6c1 100644 --- a/test/unit/build/services/github_test.js +++ b/test/unit/build/services/github_test.js @@ -336,7 +336,7 @@ describe('Unit | Build | github-test', function () { ]; nock('https://api.github.com') .get('/repos/github-owner/github-repository/commits') - .query({ since: latestReleaseDate, until: now.toISOString(), path: 'api/lib/config.js' }) + .query({ since: latestReleaseDate, until: now.toISOString(), path: 'api/src/shared/config.js' }) .reply(200, [ { sha: '5ec2f42', @@ -394,7 +394,7 @@ describe('Unit | Build | github-test', function () { ]; nock('https://api.github.com') .get('/repos/github-owner/github-repository/commits') - .query({ since: latestReleaseDate, until: now.toISOString(), path: 'api/lib/config.js' }) + .query({ since: latestReleaseDate, until: now.toISOString(), path: 'api/src/shared/config.js' }) .reply(200, []); nock('https://api.github.com') @@ -437,7 +437,7 @@ describe('Unit | Build | github-test', function () { // given nock('https://api.github.com') .get('/repos/github-owner/github-repository/commits') - .query({ since: secondToLastReleaseDate, until: latestReleaseDate, path: 'api/lib/config.js' }) + .query({ since: secondToLastReleaseDate, until: latestReleaseDate, path: 'api/src/shared/config.js' }) .reply(200, [ { sha: '5ec2f42', @@ -472,7 +472,7 @@ describe('Unit | Build | github-test', function () { // given nock('https://api.github.com') .get('/repos/github-owner/github-repository/commits') - .query({ since: secondToLastReleaseDate, until: latestReleaseDate, path: 'api/lib/config.js' }) + .query({ since: secondToLastReleaseDate, until: latestReleaseDate, path: 'api/src/shared/config.js' }) .reply(200, []); nock('https://api.github.com')