Skip to content

Commit ee77083

Browse files
committed
chore: test to check for dependencies
1 parent f1c1c1f commit ee77083

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ import {namedReferences} from '../src/named-references';
55
// eslint-disable-next-line @typescript-eslint/no-require-imports
66
const {encode, decode, decodeEntity} = require(process.env.TEST_LIB ? '../lib' : '../src') as typeof HtmlEntities;
77

8+
describe('package', () => {
9+
it('should have no dependencies', () => {
10+
// eslint-disable-next-line @typescript-eslint/no-require-imports
11+
expect(require('../package.json').dependencies).to.equal(undefined);
12+
});
13+
});
814
describe('encode()', () => {
915
it('should handle undefined', () => {
1016
expect(decode(undefined)).to.equal('');

0 commit comments

Comments
 (0)