From 462864b9746ce1db5d578ce17621dba6d023f195 Mon Sep 17 00:00:00 2001 From: Marko Arambasic Date: Mon, 23 Dec 2024 00:43:18 -0800 Subject: [PATCH] chore: delete scripts --- scripts/test/fixtures/CHANGELOG.md | 18 ------------------ scripts/test/tests.js | 21 --------------------- 2 files changed, 39 deletions(-) delete mode 100644 scripts/test/fixtures/CHANGELOG.md delete mode 100644 scripts/test/tests.js diff --git a/scripts/test/fixtures/CHANGELOG.md b/scripts/test/fixtures/CHANGELOG.md deleted file mode 100644 index cea058bfa..000000000 --- a/scripts/test/fixtures/CHANGELOG.md +++ /dev/null @@ -1,18 +0,0 @@ -# @matterlabs/hardhat-zksync-solc - -## 0.1.3 - -### Minor Changes - -- 6fdd34b: Change 2 -- 7fdd34b: Change 3 - -### Patch Changes - -- Change 4 [#235](https://github.com/matter-labs/hardhat-zksync/pull/235) [e63173](https://github.com/matter-labs/hardhat-zksync/pull/235/commits/e631737f79ed76b4772c4869af131740e96acea4) - -## 0.1.2 - -### Patch Changes - -- 5fdd34b: Change 1 \ No newline at end of file diff --git a/scripts/test/tests.js b/scripts/test/tests.js deleted file mode 100644 index dc166149d..000000000 --- a/scripts/test/tests.js +++ /dev/null @@ -1,21 +0,0 @@ -import { parseReleaseNotes } from '../create-release-from-tags/index.js'; -import fs from 'fs'; -import path from 'path'; -import { expect } from 'chai'; -import { fileURLToPath } from 'url'; - -const __dirname = path.dirname(fileURLToPath(import.meta.url)); - -const readFixture = (filename) => { - return fs.readFileSync(path.join(__dirname, 'fixtures', filename), { encoding: 'utf8' }); -}; - -describe('parseReleaseNotes', () => { - it('should parse release notes from changelog for specific version', () => { - const changelogText = readFixture('CHANGELOG.md'); - - const releaseNotes = parseReleaseNotes(changelogText, '0.1.3'); - - expect(releaseNotes).to.be.equal('\n### Minor Changes\n\n- 6fdd34b: Change 2\n- 7fdd34b: Change 3\n\n### Patch Changes\n\n- Change 4 [#235](https://github.com/matter-labs/hardhat-zksync/pull/235) [e63173](https://github.com/matter-labs/hardhat-zksync/pull/235/commits/e631737f79ed76b4772c4869af131740e96acea4)\n'); - }); -});