npm/workspaces/arborist/test/signals.js

12 lines
344 B
JavaScript

const t = require('tap')
const runTest = platform => async t => {
global.__ARBORIST_FAKE_PLATFORM__ = process.platform === platform ? null
: platform
t.matchSnapshot(t.mock('../lib/signals.js'))
}
t.test('signals on darwin', runTest('darwin'))
t.test('signals on linux', runTest('linux'))
t.test('signals on win32', runTest('win32'))