mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b9f1e57201
Instead of using the public AssertionError, use a simplified error that describes potential causes of these assertions and suggests the user to open an issue. PR-URL: https://github.com/nodejs/node/pull/26635 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
14 lines
307 B
JavaScript
14 lines
307 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
|
|
// This tests that the internal assert module works as expected.
|
|
// The failures are tested in test/message.
|
|
|
|
require('../common');
|
|
|
|
const internalAssert = require('internal/assert');
|
|
|
|
// Should not throw.
|
|
internalAssert(true);
|
|
internalAssert(true, 'fhqwhgads');
|