Skip to content

Commit

Permalink
chore: split deconstructor into two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Oct 22, 2023
1 parent f8f2a6a commit a486123
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/docs/versions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ describe.runIf(isFakerOrigin())('docs versions', () => {
semver.valid(version)
);
const latestMajorRelease = semver.major(releaseVersions[0].version);
for (const [i, { version, link }] of releaseVersions.entries()) {
for (const [index, value] of releaseVersions.entries()) {
const { version, link } = value;
const oldMajorVersion = semver.major(version);
expect(oldMajorVersion).toBe(latestMajorRelease - i);
expect(oldMajorVersion).toBe(latestMajorRelease - index);
expect(link).toBe(`https://v${oldMajorVersion}.fakerjs.dev/`);
}
});
Expand Down

0 comments on commit a486123

Please sign in to comment.