Skip to content

Commit 18825fd

Browse files
committed
feat(internal): kIsNodeError
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent e2ac0f9 commit 18825fd

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @file Unit Tests - kIsNodeError
3+
* @module create-error-node/internal/tests/unit/kIsNodeError
4+
*/
5+
6+
import testSubject from '../k-is-node-error'
7+
8+
describe('unit:internal/kIsNodeError', () => {
9+
it('should have description "kIsNodeError"', () => {
10+
expect(testSubject.description).to.equal('kIsNodeError')
11+
})
12+
})

src/internal/k-is-node-error.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @file Internal - kIsNodeError
3+
* @module create-node-error/internal/kIsNodeError
4+
*/
5+
6+
/**
7+
* Node.js error symbol.
8+
*
9+
* @const {symbol} kIsNodeError
10+
*/
11+
const kIsNodeError: symbol = Symbol('kIsNodeError')
12+
13+
export default kIsNodeError

0 commit comments

Comments
 (0)