MCPcopy Create free account
hub / github.com/sindresorhus/execa / getCorrectEncodingMessage

Function getCorrectEncodingMessage

test/arguments/encoding-option.js:15–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14const UNKNOWN_ENCODING_MESSAGE = 'Please rename it to one of';
15const getCorrectEncodingMessage = correctEncoding => `Please rename it to "${correctEncoding}"`;
16
17test('cannot pass unknown encodings', testInvalidEncoding, 'unknown', UNKNOWN_ENCODING_MESSAGE, execa);
18test('cannot pass unknown encodings, sync', testInvalidEncoding, 'unknown', UNKNOWN_ENCODING_MESSAGE, execaSync);

Callers 1

encoding-option.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected