Skip to content

Commit

Permalink
chore(test): Condensed without-process.config tests
Browse files Browse the repository at this point in the history
Signed-off-by: mrickard <maurice@mauricerickard.com>
  • Loading branch information
mrickard committed Jun 30, 2023
1 parent 15e11ed commit 5094558
Showing 1 changed file with 21 additions and 37 deletions.
58 changes: 21 additions & 37 deletions test/unit/environment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,43 +156,27 @@ tap.test('the environment scraper', (t) => {
return reloadEnvironment()
})

t.test('should not know whether npm was installed with Node.js', (t) => {
t.notOk(find(settings, 'npm installed?'))
t.end()
})

t.test('should not know whether WAF was installed with Node.js', (t) => {
t.notOk(find(settings, 'WAF build system installed?'))
t.end()
})

t.test('should not know whether OpenSSL support was compiled into Node.js', (t) => {
t.notOk(find(settings, 'OpenSSL support?'))
t.end()
})

t.test('should not know whether OpenSSL was dynamically linked in', (t) => {
t.notOk(find(settings, 'Dynamically linked to OpenSSL?'))
t.end()
})

t.test('should not know whether V8 was dynamically linked in', (t) => {
t.notOk(find(settings, 'Dynamically linked to V8?'))
t.end()
})

t.test('should not know whether Zlib was dynamically linked in', (t) => {
t.notOk(find(settings, 'Dynamically linked to Zlib?'))
t.end()
})

t.test('should not know whether DTrace support was configured', (t) => {
t.notOk(find(settings, 'DTrace support?'))
t.end()
})

t.test('should not know whether Event Tracing for Windows was configured', (t) => {
t.notOk(find(settings, 'Event Tracing for Windows (ETW) support?'))
t.test('assertions without process.config', (t) => {
t.notOk(
find(settings, 'npm installed?'),
'should not know whether npm was installed with Node.js'
)
t.notOk(
find(settings, 'WAF build system installed?'),
'should not know whether WAF was installed with Node.js'
)
t.notOk(
find(settings, 'OpenSSL support?'),
'should not know whether OpenSSL support was compiled into Node.js'
)
t.notOk(find(settings, 'Dynamically linked to OpenSSL?'), 'Dynamically linked to OpenSSL?')
t.notOk(find(settings, 'Dynamically linked to V8?'), 'Dynamically linked to V8?')
t.notOk(find(settings, 'Dynamically linked to Zlib?'), 'Dynamically linked to Zlib?')
t.notOk(find(settings, 'DTrace support?'), 'DTrace support?')
t.notOk(
find(settings, 'Event Tracing for Windows (ETW) support?'),
'Event Tracing for Windows (ETW) support?'
)
t.end()
})
t.end()
Expand Down

0 comments on commit 5094558

Please sign in to comment.