UNPKG

@pnpm/tabtab

Version:

tab completion helpers, for node cli programs. Inspired by npm completion.

16 lines (13 loc) 435 B
const assert = require('assert'); const { isShellSupported, SUPPORTED_SHELLS } = require('..'); describe('isShellSupported', () => { it('returns true for supported shells', () => { assert.deepStrictEqual( SUPPORTED_SHELLS.filter(shell => isShellSupported(shell)), SUPPORTED_SHELLS, ); }) it('returns false for unsupported shells', () => { assert.strictEqual(isShellSupported('unknown'), false); }) })