Skip to content

Commit f620cff

Browse files
committed
Add test package.json has correct deps
1 parent fe44946 commit f620cff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,17 @@ test('output not malformed if base is non-root', (t) => {
104104
const { stdout: stdout2 } = run2('fixtures/about', '-o', '-f', 'txt', '--slash')
105105
t.is(stdout2, 'https://x.com/foo/')
106106
})
107+
108+
test('package.json has correct dependencies', (t) => {
109+
const pkg = JSON.parse(fs.readFileSync(path.join(__testdir, '..', 'package.json'), 'utf-8'))
110+
const dependencies = Object.keys(pkg.dependencies)
111+
t.deepEqual(dependencies, [
112+
'commander',
113+
'cosmiconfig',
114+
'fast-glob',
115+
'htmlparser2',
116+
'js2xmlparser',
117+
'micromatch',
118+
'tiny-async-pool'
119+
])
120+
})

0 commit comments

Comments
 (0)