diff --git a/source/app/web/statics/embed/app.placeholder.js b/source/app/web/statics/embed/app.placeholder.js index 130c093a..f36e248d 100644 --- a/source/app/web/statics/embed/app.placeholder.js +++ b/source/app/web/statics/embed/app.placeholder.js @@ -103,7 +103,7 @@ databaseId: faker.number.int(10000000), name: "(placeholder)", login: set.user || "metrics", - createdAt: `${faker.date.past({ years:10})}`, + createdAt: `${faker.date.past({years: 10})}`, avatarUrl: set.avatar, websiteUrl: options["pagespeed.url"] || "(attached website)", isHireable: options["base.hireable"], @@ -137,7 +137,7 @@ tweets: { username: options["tweets.user"] || "(attached Twitter account)", profile: { - profile_image_url: faker.image.urlLoremFlickr({ category: 'people' }), + profile_image_url: faker.image.urlLoremFlickr({category: "people"}), name: "", verified: false, id: faker.number.int(1000000).toString(), @@ -998,7 +998,7 @@ name: faker.lorem.words(), type, status: faker.helpers.arrayElement(["FINISHED", "RELEASING", "NOT_YET_RELEASED", "CANCELLED", "HIATUS"]), - release: faker.date.past({years:20}).getFullYear(), + release: faker.date.past({years: 20}).getFullYear(), genres: new Array(6).fill(null).map(_ => faker.lorem.word()), progress: faker.number.int(100), description: faker.lorem.paragraphs(), @@ -1043,7 +1043,7 @@ player: { level: faker.number.int(100), avatar: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mOcOnfpfwAGfgLYttYINwAAAABJRU5ErkJggg==", - created: faker.date.recent({days:10}).getTime(), + created: faker.date.recent({days: 10}).getTime(), name: faker.internet.userName(), }, games: { @@ -1057,7 +1057,7 @@ icon: "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCABAAEADASIAAhEBAxEB/8QA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BUAAe66Ue6G2WhWq6ovF+f8AG3JGCgtkpQD9x60DMtEp+WHHFoCI2MN4GOKz73lnouW410eRyAstjHuCauzvNrGLonQ81/vEty3GyiMgcEqrPSXJXMmyJLxy68srJ+5OaDxX81EOhNWXHR1/YudsdUlTagVIB4UPYioi4wZEJ/upCCleM1yhJ59KC/8AtzvRpnV8NhLstuFcSACw6rlSvXFM5JT84UCFDg54rLZpx1hxLsdS2lJ6KScEf7ootm4OqbatCmLvJV2eneOFQ/ug0jzzyefzQDr3dfTOjWHRMnNPTUDiM2rzVR27bjaruR7Ui7SEk8ZbWU/9oXlyZEt0uS3nH3T9S1FR/mgLd0df3LXl9cmTVqEYKIaazwkenFBaeo9K+dk56V7w4zsqQGWkFS1dAKD/2Q==", playtime: faker.number.int(100), - played: faker.date.recent({days:10}).getTime(), + played: faker.date.recent({days: 10}).getTime(), description: "NieR: Automata tells the story of androids 2B, 9S and A2 and their battle to reclaim the machine-driven dystopia overrun by powerful machines.", genres: [ "Action", @@ -1068,7 +1068,7 @@ icon: "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAgACADASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAUGBwP/xAAmEAABAgQDCQAAAAAAAAAAAAABAAIDBAUGBxIUFiMxNVNhc5Gx/8QAFgEBAQEAAAAAAAAAAAAAAAAAAAME/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6XVcM5QqlppTK+G4GJvSXEEngOyT7d1TpwPRRiVz5niH0qTWNVWbd1TpwPRTi1bhnK7UtNN5WQ2gRN0S0kg8D2Wdqsw158/xH6EBiVz5niH0qTWiXVb05XalqZTKyG0GHvQWkkHiOyT7CVTqQPZQSarMNefP8R+hGwlU6kD2U4tW3pyhVLUzeV8NwEPdAuIJPE9kH//Z", achieved: true, - unlocked: faker.date.recent({days:10}).getTime(), + unlocked: faker.date.recent({days: 10}).getTime(), name: "Transcendent Being", description: "", id: "ACH_BAD_END", @@ -1077,7 +1077,7 @@ icon: "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAgACADASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAABQQDAAL/xAAtEAABAwMCBAQGAwAAAAAAAAABAgMEAAURBiISITFBExQjMlFhcYGRsRXB0f/EABcBAQEBAQAAAAAAAAAAAAAAAAABAwT/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwC3UF7lWeeY8bc2rLnqKJIJPT6VhE1BdpCgAhtORy2qJ/ArxqprxtRIB7IH7pixMJZfZWOQPEB+DXG1FSL/AHhj3soB64IINU6evMm8TvLytqEYX6aikkg9D8vlSmomEPcK8hWEYIznuaE0uz4N/cx3R/dQdqdt3+cDkfgUtLZ2LOAr4DPaqbOiDeZrcW4w5cd2Mkq3HiQVBW4Ajl7eX3OOlb3W2yLjMMiPxJSklO9JByDjP0q+2tzIiAlyO27j4k1QfdotvsD7zjEOa9Hkoy64yBhrh6de2P1U2mXmpN2W8wh5Dakjh8UYKh3OKcuKZUpspbitNkjBOT/tHWu3yLfN8xJClpWQnYkqIyeX2oP/2Q==", achieved: true, - unlocked: faker.date.recent({days:10}).getTime(), + unlocked: faker.date.recent({days: 10}).getTime(), name: "A Round by the Pond", description: "20 different kinds of fish caught.", id: "ACH_FISHING", @@ -1096,7 +1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Rc0XaAwlSyHUfTO++1ef5Q2+4FqajY7ax0Ioi6tBd6o2r+QjxtassqUQR2G1IK4sXPh65MXC3zELjh0pcjAbhI710h6gsvOWlHJISkElRPakTxE6yxqclIPwh+Vah296M+MGDsFZZw1CU4LjDQYsh0AOxldFjyBWxHgMc9UlLaQ6vZeBUMN2JCjMhb6dKkhSD3welbLMqDJePwMlLjgGVpT2qTtnSlqZlRfiHmFLwW0KyoeR4qJUpLbHORlbTSjgf+VsPvKDiUspKlDqmhuXJ+HYfLSgVJJOj/I+KMX6Fkm+klhuTFr4mXHQomPJwUgncKO5ovvqorrzSJK0pc/An8vakxeHC1Li3SM5qTHXrUQe/cVf8cX1f8FAfOdThyhwHocU9E2unQ/EUkXO3PvNqKYUdOvmdnD4pK8ZRFOfGW6WOWmUyChRGwB3FP3iRtL1qctkZCUuSRpAA2T7mgj1UtammLNISxzQkhp9SR9oCetPJeyGGdcOd/TG4G7zXbBc1KE2EsqjLUdl74A99qawZgWNouTHWoh/LVjKjSC9WZbNt4nactWuNNbOoqScZHagGVcrlOK3JEyS7k5IU4SKDx7O0Os+q1as6Ru/FYkkpgILLWcKWo/cPY0u+LuNmYrzTMJfMcZOsqB2UT2pdyOILm+xyVu4RpCfl2OKqMkryrJPcmtHHTthyeTaqKDnh3idtiW9FkkqgSDqyo50LO5/5RFd7wzcOCp0DX/cxAXU7/iemKUmQVbZx4qQOuDOHFZIwd+o8GncVdkFmdas//9k=", playtime: faker.number.int(100), - played: faker.date.recent({days:10}).getTime(), + played: faker.date.recent({days: 10}).getTime(), description: "The upgraded prequel of NieR:Automata. A kind young man sets out with Grimoire Weiss, a strange talking book, to search for the "Sealed verses" in order to save his sister Yonah, who fell terminally ill to the Black Scrawl.", genres: [ "Action", @@ -1108,7 +1108,7 @@ icon: "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAgACADASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAwUGBAL/xAAsEAACAgEDAwMDAwUAAAAAAAABAgMEBQAGERIhMSJBUQdhkRMUoRVDUnGz/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAH/xAAYEQEBAQEBAAAAAAAAAAAAAAABACERMf/aAAwDAQACEQMRAD8AsL+R3Jkd+5LEYnIrSr1Yo2QGFGDcqpJLEE88t4+2rbA08hXQDJ5N70jEDkxIgX/XSBzoWMxpr5vK3XPa08ZUD2CoF/PY6lZs7uaDaW9LmTr16NnHGT9nJGvVwvSCOxPq4DDhu3f21fcJ5a89nb8eKwVqKZ68mTtCoqxlAFLu3Qx6lbn0qPHzrNHlM5S3thcdcumercezDIpVCrGOIOGUhVIIblSD8ffSjIY3LZPZGzYzXS3LjpoLd4GRY1SJULBT1Hu3Qy/Y9/GqLH4dpc7jrP8ASWoVcfLI9UGRWLCVGMh4UkKvUV4HnudXCk+x+XisZ3IYz+9VCNz8hlB/jn+dSP1ZuGrs/dNeM8SW3pRIB5P6pCH/AJnXGWo7mxu/psvhKAvU7CKsimRF6V4UMOGYEN6fPfzphujZ1rPSLPDk7UD8wSiKZ+tVkicsvt7Bm4+CffUOCMYONyd/IboyG344QsVXJdVtyhCrVijjWNAf8pGX8Bu3fVVdz9SvuOhhnk5u3EeQIO5CgE8n8HSXBbZtbeny08Vy1dSy5siL9YiWWXjv1sex5+dI8Bh9yZL6hRbg3Jj4aaVYmihCOpBUhgPDE8+s8nto8Zt//9k=", achieved: true, - unlocked: faker.date.recent({days:10}).getTime(), + unlocked: faker.date.recent({days: 10}).getTime(), name: "e8 a8 98 e6 86 b6 e3 82 b5 e3 83 bc e3 83 90 e3 83 bc", description: "", id: "ACHIEVEMENT_0230", @@ -1117,7 +1117,7 @@ icon: "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAgACADASIAAhEBAxEB/8QAGAABAAMBAAAAAAAAAAAAAAAABgQFBwP/xAAsEAACAQQBAwIFBAMAAAAAAAABAgMEBQYRABIhMSJBBxMUUaEVIzJhUnGC/8QAFgEBAQEAAAAAAAAAAAAAAAAAAQAC/8QAGhEAAwEBAQEAAAAAAAAAAAAAAAERIUExMv/aAAwDAQACEQMRAD8AXZJe7vT5DVJLe1sVvR1hgeeCN4JGIH8pvV0MdghXC/0TxvY6S4UsJ/Urm9fIwBBMSIF/10gb5Gp7LG9wvclZFHPTXAorQyKHR0EYUgg+ffgDNbZk2BWSeuw27O1hh0Xt9SonajUt5iZgT0bIBU9wD7+z9Yi8HGaV60ENKTkMVmknf5MRljV1lc6+4Ovbv4G+/CtFeMnt3xHtljvVfFU09XHI5VIkA0EYqdgAhtr48a4dseE5ZltTb8lya4W2qi6FqKairY2eKRWXYUqmgi999tkHR0eaHHZK2qyS23m809ujq6cMiCjeR+gFWB6mYAMNHQAUd/f244sDWW1vu8VRfbhbN/vUoRt/cMoP43+eTLxQpdLPX2+TulVTyQn/AKUgfnXM9yCgyy3ZrV3fG6GOtiqIgvTI6BV9KgjTMp36B3/vifFbvks88aX/AB40miCZ4qiNl2D/AIhiRzM6hp0+Gc/1Hw7xqQb39BErb9mUdJ/IPJtZfqSmyKgszODW1aNIqDyFAJ2fsPSeVCxX+wYvFQ2e3U1wrIzN8tvniNEBlZkBDaJPSwHkDY88O4xaMpuWd02QZVb4KN6WBoUETp0nYYDQDMd+o8YnWV4f/9k=", achieved: true, - unlocked: faker.date.recent({days:10}).getTime(), + unlocked: faker.date.recent({days: 10}).getTime(), name: "Daredevil", description: "", id: "ACHIEVEMENT_0460", @@ -1342,7 +1342,7 @@ contributionDays: new Array(7).fill(0).map(() => ({ contributionCount: faker.number.int(10), color: faker.helpers.arrayElement(["#ebedf0", "#ebedf0", "#ebedf0", "#ebedf0", "#ebedf0", "#ebedf0", "#9be9a8", "#9be9a8", "#9be9a8", "#40c463", "#40c463", "#30a14e", "#216e39"]), - date: faker.date.past({years:1}), + date: faker.date.past({years: 1}), })), })), })), diff --git a/tests/mocks/api/axios/get/lastfm.mjs b/tests/mocks/api/axios/get/lastfm.mjs index ad301c6d..0e864713 100644 --- a/tests/mocks/api/axios/get/lastfm.mjs +++ b/tests/mocks/api/axios/get/lastfm.mjs @@ -33,19 +33,19 @@ export default function({faker, url, options, login = faker.internet.userName()} image: [ { size: "small", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "medium", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "large", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "extralarge", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, ], streamable: "0", @@ -86,19 +86,19 @@ export default function({faker, url, options, login = faker.internet.userName()} image: [ { size: "small", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "medium", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "large", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "extralarge", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, ], url: faker.internet.url(), @@ -130,19 +130,19 @@ export default function({faker, url, options, login = faker.internet.userName()} image: [ { size: "small", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "medium", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "large", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, { size: "extralarge", - "#text": faker.image.urlLoremFlickr({ category: 'abstract' }), + "#text": faker.image.urlLoremFlickr({category: "abstract"}), }, ], streamable: "0", diff --git a/tests/mocks/api/axios/get/spotify.mjs b/tests/mocks/api/axios/get/spotify.mjs index 640726f1..cf3fe687 100644 --- a/tests/mocks/api/axios/get/spotify.mjs +++ b/tests/mocks/api/axios/get/spotify.mjs @@ -24,17 +24,17 @@ export default function({faker, url, options, login = faker.internet.userName()} images: [ { height: 640, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 640, }, { height: 300, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 300, }, { height: 64, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 64, }, ], @@ -81,17 +81,17 @@ export default function({faker, url, options, login = faker.internet.userName()} images: [ { height: 640, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 640, }, { height: 300, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 300, }, { height: 64, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 64, }, ], @@ -126,17 +126,17 @@ export default function({faker, url, options, login = faker.internet.userName()} images: [ { height: 640, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 640, }, { height: 300, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 300, }, { height: 64, - url: faker.image.urlLoremFlickr({ category: 'abstract' }), + url: faker.image.urlLoremFlickr({category: "abstract"}), width: 64, }, ], diff --git a/tests/mocks/api/axios/get/twitter.mjs b/tests/mocks/api/axios/get/twitter.mjs index c23ccb54..761a3f96 100644 --- a/tests/mocks/api/axios/get/twitter.mjs +++ b/tests/mocks/api/axios/get/twitter.mjs @@ -10,7 +10,7 @@ export default function({faker, url, options, login = faker.internet.userName()} status: 200, data: { data: { - profile_image_url: faker.image.urlLoremFlickr({ category: 'people' }), + profile_image_url: faker.image.urlLoremFlickr({category: "people"}), name: faker.person.fullName(), verified: faker.datatype.boolean(), id: faker.number.int(1000000).toString(), diff --git a/tests/mocks/api/axios/post/anilist.mjs b/tests/mocks/api/axios/post/anilist.mjs index fd9e725c..59f9ba16 100644 --- a/tests/mocks/api/axios/post/anilist.mjs +++ b/tests/mocks/api/axios/post/anilist.mjs @@ -15,7 +15,7 @@ export default function({faker, url, body, login = faker.internet.userName()}) { countryOfOrigin: "JP", genres: new Array(6).fill(null).map(_ => faker.lorem.word()), coverImage: {medium: null}, - startDate: {year: faker.date.past({years:20}).getFullYear()}, + startDate: {year: faker.date.past({years: 20}).getFullYear()}, }) //User statistics query if (/^query Statistics /.test(query)) { diff --git a/tests/mocks/api/github/graphql/base.user.mjs b/tests/mocks/api/github/graphql/base.user.mjs index fcc01f0c..30456c8d 100644 --- a/tests/mocks/api/github/graphql/base.user.mjs +++ b/tests/mocks/api/github/graphql/base.user.mjs @@ -6,8 +6,8 @@ export default function({faker, query, login = faker.internet.userName()}) { databaseId: faker.number.int(10000000), name: faker.person.fullName(), login, - createdAt: `${faker.date.past({years:10})}`, - avatarUrl: faker.image.urlLoremFlickr({ category: 'people' }), + createdAt: `${faker.date.past({years: 10})}`, + avatarUrl: faker.image.urlLoremFlickr({category: "people"}), websiteUrl: faker.internet.url(), twitterUsername: login, }, diff --git a/tests/mocks/api/github/graphql/stargazers.default.mjs b/tests/mocks/api/github/graphql/stargazers.default.mjs index d3a98f96..aaebec76 100644 --- a/tests/mocks/api/github/graphql/stargazers.default.mjs +++ b/tests/mocks/api/github/graphql/stargazers.default.mjs @@ -13,7 +13,7 @@ export default function({faker, query, login = faker.internet.userName()}) { repository: { stargazers: { edges: new Array(faker.number.int({min: 50, max: 100})).fill(null).map(() => ({ - starredAt: `${faker.date.recent({days:30})}`, + starredAt: `${faker.date.recent({days: 30})}`, cursor: "MOCKED_CURSOR", node: { location: faker.location.city(), diff --git a/tests/mocks/api/github/graphql/stars.default.mjs b/tests/mocks/api/github/graphql/stars.default.mjs index 4ee8e37d..b929da11 100644 --- a/tests/mocks/api/github/graphql/stars.default.mjs +++ b/tests/mocks/api/github/graphql/stars.default.mjs @@ -6,7 +6,7 @@ export default function({faker, query, login = faker.internet.userName()}) { starredRepositories: { edges: [ { - starredAt: `${faker.date.recent({days:14})}`, + starredAt: `${faker.date.recent({days: 14})}`, node: { description: "📊 An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !", forkCount: faker.number.int(100), diff --git a/tests/mocks/api/github/rest/activity/listEventsForAuthenticatedUser.mjs b/tests/mocks/api/github/rest/activity/listEventsForAuthenticatedUser.mjs index add7f1dc..5d8bab0b 100644 --- a/tests/mocks/api/github/rest/activity/listEventsForAuthenticatedUser.mjs +++ b/tests/mocks/api/github/rest/activity/listEventsForAuthenticatedUser.mjs @@ -29,7 +29,7 @@ export default async function({faker}, target, that, [{username: login, page, pe body: faker.lorem.sentence(), }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -58,7 +58,7 @@ export default async function({faker}, target, that, [{username: login, page, pe body: "", }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -82,7 +82,7 @@ export default async function({faker}, target, that, [{username: login, page, pe performed_via_github_app: null, }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -105,7 +105,7 @@ export default async function({faker}, target, that, [{username: login, page, pe }, ], }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -138,7 +138,7 @@ export default async function({faker}, target, that, [{username: login, page, pe performed_via_github_app: null, }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -156,7 +156,7 @@ export default async function({faker}, target, that, [{username: login, page, pe full_name: `${faker.lorem.word()}/${faker.lorem.word()}`, }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -186,7 +186,7 @@ export default async function({faker}, target, that, [{username: login, page, pe }, }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -207,7 +207,7 @@ export default async function({faker}, target, that, [{username: login, page, pe prerelease: faker.datatype.boolean(), }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -224,7 +224,7 @@ export default async function({faker}, target, that, [{username: login, page, pe ref_type: faker.helpers.arrayElement(["tag", "branch"]), master_branch: "master", }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -237,7 +237,7 @@ export default async function({faker}, target, that, [{username: login, page, pe name: "lowlighter/metrics", }, payload: {action: "started"}, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -253,7 +253,7 @@ export default async function({faker}, target, that, [{username: login, page, pe ref: faker.lorem.slug(), ref_type: faker.helpers.arrayElement(["tag", "branch"]), }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -279,7 +279,7 @@ export default async function({faker}, target, that, [{username: login, page, pe }, ], }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -305,7 +305,7 @@ export default async function({faker}, target, that, [{username: login, page, pe changed_files: faker.number.int(10), }, }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -323,7 +323,7 @@ export default async function({faker}, target, that, [{username: login, page, pe }, action: "added", }, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, { @@ -336,7 +336,7 @@ export default async function({faker}, target, that, [{username: login, page, pe name: `${faker.lorem.word()}/${faker.lorem.word()}`, }, payload: {}, - created_at: faker.date.recent({days:7}), + created_at: faker.date.recent({days: 7}), public: true, }, ], diff --git a/tests/mocks/api/github/rest/repos/listCommits.mjs b/tests/mocks/api/github/rest/repos/listCommits.mjs index 9523a897..7095e007 100644 --- a/tests/mocks/api/github/rest/repos/listCommits.mjs +++ b/tests/mocks/api/github/rest/repos/listCommits.mjs @@ -21,13 +21,13 @@ export default async function({faker}, target, that, [{page, per_page, owner, re name: owner, login: faker.internet.userName(), avatar_url: null, - date: `${faker.date.recent({days:14})}`, + date: `${faker.date.recent({days: 14})}`, }, committer: { name: owner, login: faker.internet.userName(), avatar_url: null, - date: `${faker.date.recent({days:14})}`, + date: `${faker.date.recent({days: 14})}`, }, }, })) diff --git a/tests/mocks/api/github/rest/request.mjs b/tests/mocks/api/github/rest/request.mjs index 83b1fb97..96ce51a5 100644 --- a/tests/mocks/api/github/rest/request.mjs +++ b/tests/mocks/api/github/rest/request.mjs @@ -28,12 +28,12 @@ export default async function({faker}, target, that, args) { author: { name: faker.internet.userName(), email: faker.internet.email(), - date: `${faker.date.recent({days:7})}`, + date: `${faker.date.recent({days: 7})}`, }, committer: { name: faker.internet.userName(), email: faker.internet.email(), - date: `${faker.date.recent({days:7})}`, + date: `${faker.date.recent({days: 7})}`, }, url: "https://api.github.com/repos/lowlighter/metrics/commits/MOCKED_SHA", }, diff --git a/tests/mocks/index.mjs b/tests/mocks/index.mjs index 27c68db6..e470dc51 100644 --- a/tests/mocks/index.mjs +++ b/tests/mocks/index.mjs @@ -73,17 +73,17 @@ export default async function({graphql, rest}) { return new Proxy(target[section], { get(target, property) { if (mocks.github.rest?.[section]?.[property]) { - return async function () { + return async function() { console.debug(`metrics/mocking > rest.${section}.${property}`) return mocks.github.rest[section][property]({faker}, target, null, arguments) } } return Reflect.get(target, property) - } + }, }) } return Reflect.get(target, section) - } + }, }) }