Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16920345bb |
@@ -10,10 +10,8 @@ interface PackageMetadata {
|
||||
};
|
||||
readonly bugs?: {
|
||||
readonly url?: string;
|
||||
readonly email?: string;
|
||||
};
|
||||
readonly homepage?: string;
|
||||
readonly author?: string;
|
||||
}
|
||||
|
||||
const packageJson = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf8')) as PackageMetadata;
|
||||
@@ -29,14 +27,7 @@ describe('package publication metadata', () => {
|
||||
it('links npm consumers to support and documentation', () => {
|
||||
expect(packageJson.bugs).toEqual({
|
||||
url: 'https://github.com/Expressive-Tea/green-tea/issues',
|
||||
email: 'projects@expressive-tea.io',
|
||||
});
|
||||
expect(packageJson.homepage).toBe('https://green-tea.expressive-tea.io/docs/');
|
||||
});
|
||||
|
||||
// A published package whose only contact is a GitHub URL is unreachable to anyone without
|
||||
// an account, so the address is pinned here rather than left to drift back out.
|
||||
it('gives npm an address to show for the package', () => {
|
||||
expect(packageJson.author).toBe('green-tea contributors <projects@expressive-tea.io>');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user