-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apply formatting to $ error messages
- Loading branch information
1 parent
0b6949b
commit 6b1eb65
Showing
8 changed files
with
428 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as assert from 'node:assert' | ||
import { describe, it } from 'node:test' | ||
import { | ||
getCallerLocation, | ||
getCallerLocationFromString, | ||
getExitCodeInfo, | ||
getErrnoMessage, | ||
formatErrorMessage, | ||
formatExitMessage, | ||
EXIT_CODES, | ||
ERRNO_CODES | ||
} from '../../main/ts/error.js' | ||
|
||
import * as all from '../../main/ts/error.js' | ||
|
||
describe('error', () => { | ||
it('has proper exports', () => { | ||
assert.equal(typeof getCallerLocation, 'function') | ||
assert.equal(typeof getCallerLocationFromString, 'function') | ||
assert.equal(typeof getExitCodeInfo, 'function') | ||
assert.equal(typeof getErrnoMessage, 'function') | ||
assert.equal(typeof formatErrorMessage, 'function') | ||
assert.equal(typeof formatExitMessage, 'function') | ||
assert.equal(typeof EXIT_CODES, 'object') | ||
assert.equal(typeof ERRNO_CODES, 'object') | ||
assert.equal(Object.keys(all).length, 8) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.