generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
changelog.test.ts
29 lines (23 loc) · 879 Bytes
/
changelog.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import Changelog from './changelog';
const emptyChangelog = `# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
[Unreleased]: fake://metamask.io/
`;
describe('Changelog', () => {
it('should allow creating an empty changelog', () => {
const changelog = new Changelog({
repoUrl: 'fake://metamask.io',
});
expect(changelog.toString()).toStrictEqual(emptyChangelog);
});
it('should allow creating an empty changelog with a custom tag prefix', () => {
const changelog = new Changelog({
repoUrl: 'fake://metamask.io',
tagPrefix: 'example@v',
});
expect(changelog.toString()).toStrictEqual(emptyChangelog);
});
});